Skip to content

Commit f53941f

Browse files
Fix for ganalytics json builder (sendgrid#839)
1 parent 021a9dc commit f53941f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sendgrid/helpers/mail/ganalytics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def get(self):
168168
for key in keys:
169169
value = getattr(self, key, None)
170170
if value is not None:
171-
if isinstance(value, bool):
171+
if isinstance(value, bool) or isinstance(value, str):
172172
ganalytics[key] = value
173173
else:
174174
ganalytics[key] = value.get()

0 commit comments

Comments
 (0)