Skip to content

Commit

Permalink
Merge pull request #6 from boulderdave/master
Browse files Browse the repository at this point in the history
Auto-reply's seem to frequently not have a "text" value.
  • Loading branch information
kyogesh committed Aug 1, 2016
2 parents 0f6aba7 + 322d571 commit 01f1fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendgrid_events/views.py
Expand Up @@ -16,7 +16,7 @@ def parse_request(data):
returned_dict["Sender"] = data['from']
returned_dict["To"] = dict_from_headers['To']
returned_dict["Date"] = dict_from_headers['Date']
returned_dict["Body"] = data['text']
returned_dict["Body"] = data.get('text', '')
return returned_dict


Expand Down

0 comments on commit 01f1fe6

Please sign in to comment.