We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eafe18 commit bc7216dCopy full SHA for bc7216d
sendgrid/helpers/mail/mail.py
@@ -464,7 +464,8 @@ def add_header(self, header):
464
:param value: A Header object or a dict of header key/values
465
:type value: Header, dict
466
"""
467
- if header.personalization is not None:
+ if (isinstance(header, Header) and header.personalization is not None) or (
468
+ isinstance(header, dict) and header.get('personalization')):
469
try:
470
personalization = \
471
self._personalizations[header.personalization]
0 commit comments