mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +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:
|
try:
|
||||||
return msg.send()
|
return msg.send()
|
||||||
except SMTPException:
|
except SMTPException as e:
|
||||||
logger.exception('SMTPException raised while sending email to {}'.format(recipients))
|
logger.exception('SMTPException raised while sending email to {}'.format(recipients))
|
||||||
if not fail_silently:
|
if not fail_silently:
|
||||||
raise e
|
raise e
|
||||||
|
Loading…
Reference in New Issue
Block a user