mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 10:21:05 +01:00
Fix broken try-except statement in lib, for #577
This commit is contained in:
parent
03599f462b
commit
230b9d7ed0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user