Skip to content

Commit 4034f09

Browse files
committed
chore: bug-fix
1 parent 159f5dd commit 4034f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sendgrid/helpers/mail/mail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def add_custom_arg(self, custom_arg):
567567
:param value: A CustomArg object or a dict of custom arg key/values
568568
:type value: CustomArg, dict
569569
"""
570-
if custom_arg.personalization is not None:
570+
if not isinstance(custom_arg, dict) and custom_arg.personalization is not None:
571571
try:
572572
personalization = \
573573
self._personalizations[custom_arg.personalization]

0 commit comments

Comments
 (0)