mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 16:15:12 +02:00
Fix broken try-except statement in lib, for #577
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user