Fix broken try-except statement in lib, for #577

This commit is contained in:
Garret Wassermann 2017-12-15 20:35:41 -05:00
parent 03599f462b
commit 230b9d7ed0

View File

@ -140,7 +140,7 @@ def send_templated_mail(template_name,
try:
return msg.send()
except SMTPException:
except SMTPException as e:
logger.exception('SMTPException raised while sending email to {}'.format(recipients))
if not fail_silently:
raise e