Skip to content

Commit

Permalink
verbose retry
Browse files Browse the repository at this point in the history
  • Loading branch information
wooyek committed Apr 12, 2018
1 parent 62d86ce commit 56a7e85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .idea/django-opt-out.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example_project/.idea/example_project.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/django_opt_out/plugins/sparkpost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _send_robust(message):
except (SMTPServerDisconnected, SMTPAuthenticationError) as ex: # pragma: no cover
if not settings.SPARKPOST_RETRY_ONCE:
raise
logging.error("", exc_info=ex)
logging.error("Email send failed. Will retry once.", exc_info=ex)
# Retry once
return message.send()

Expand Down

0 comments on commit 56a7e85

Please sign in to comment.