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