Skip to content

Commit

Permalink
Fix add_header's handling of dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyDeuss authored Jan 8, 2024
1 parent 9515dce commit a0ac94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendgrid/helpers/mail/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def add_header(self, header):
:param value: A Header object or a dict of header key/values
:type value: Header, dict
"""
if header.personalization is not None:
if isinstance(header, Header) and header.personalization is not None:
try:
personalization = \
self._personalizations[header.personalization]
Expand Down

0 comments on commit a0ac94e

Please sign in to comment.