Skip to content

Commit

Permalink
Fix for ganalytics json builder (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingserious authored Sep 12, 2019
1 parent 021a9dc commit f53941f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendgrid/helpers/mail/ganalytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get(self):
for key in keys:
value = getattr(self, key, None)
if value is not None:
if isinstance(value, bool):
if isinstance(value, bool) or isinstance(value, str):
ganalytics[key] = value
else:
ganalytics[key] = value.get()
Expand Down

0 comments on commit f53941f

Please sign in to comment.