Skip to content

Commit

Permalink
fix error introduced in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccandless committed Oct 3, 2018
1 parent bd0397c commit 0434738
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sendgrid/helpers/mail/personalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,11 @@ def get(self):
obj.update(key)
personalization[prop_name] = obj

prop = getattr(self, 'dynamic_template_data', {})
if prop:
obj = {}
for key, value in prop.items():
obj[key] = value
personalization['dynamic_template_data'] = obj

return personalization

0 comments on commit 0434738

Please sign in to comment.