Skip to content

Commit

Permalink
Merge ec07671 into bcd2f81
Browse files Browse the repository at this point in the history
  • Loading branch information
volksman authored Oct 20, 2017
2 parents bcd2f81 + ec07671 commit 1bd02ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mailer/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ def send_all():
logging.warning("message discarded due to failure in converting from DB. Added on '%s' with priority '%s'" % (message.when_added, message.priority)) # noqa
message.delete()

except (socket_error, smtplib.SMTPSenderRefused,
smtplib.SMTPRecipientsRefused,
smtplib.SMTPDataError,
smtplib.SMTPAuthenticationError) as err:
except Exception as err:
message.defer()
logging.info("message deferred due to failure: %s" % err)
MessageLog.objects.log(message, RESULT_FAILURE, log_message=str(err))
Expand Down

0 comments on commit 1bd02ba

Please sign in to comment.