From 230b9d7ed0e46fd986070ad6770553a74f7ebaa1 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Fri, 15 Dec 2017 20:35:41 -0500 Subject: [PATCH] Fix broken try-except statement in lib, for #577 --- helpdesk/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 91a5e04e..72be2f23 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -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