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 159f5dd commit 4034f09Copy full SHA for 4034f09
sendgrid/helpers/mail/mail.py
@@ -567,7 +567,7 @@ def add_custom_arg(self, custom_arg):
567
:param value: A CustomArg object or a dict of custom arg key/values
568
:type value: CustomArg, dict
569
"""
570
- if custom_arg.personalization is not None:
+ if not isinstance(custom_arg, dict) and custom_arg.personalization is not None:
571
try:
572
personalization = \
573
self._personalizations[custom_arg.personalization]
0 commit comments