Skip to content

Commit

Permalink
fix getattr to default none
Browse files Browse the repository at this point in the history
  • Loading branch information
aldarund committed Apr 23, 2016
1 parent 92fd5e7 commit 016d3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_mailgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _send(self, email_message):
raise
return False

mailgun_response_hook = getattr(settings, 'MAILGUN_RESPONSE_HOOK')
mailgun_response_hook = getattr(settings, 'MAILGUN_RESPONSE_HOOK', None)
if mailgun_response_hook:
mailgun_response_hook(response, original_email_message)

Expand Down

0 comments on commit 016d3ab

Please sign in to comment.