Enable email notifications to work,

...and customize default messages
This commit is contained in:
beeankha
2019-09-10 11:04:32 -04:00
parent 57fd6b7280
commit aa5a4d42c7
2 changed files with 12 additions and 13 deletions

View File

@@ -323,7 +323,7 @@ def send_notifications(notification_list, job_id=None):
notification.status = "successful"
notification.notifications_sent = sent
except Exception as e:
logger.error("Send Notification Failed {}".format(e))
logger.exception("Send Notification Failed {}".format(e))
notification.status = "failed"
notification.error = smart_str(e)
update_fields.append('error')