Merge branch 'version-13-hotfix' into emp-adv-status-v13

This commit is contained in:
Rucha Mahabal
2022-05-24 11:49:24 +05:30
committed by GitHub

View File

@@ -253,11 +253,14 @@ def notify_errors(exceptions_list):
) )
for exception in exceptions_list: for exception in exceptions_list:
try:
exception = json.loads(exception) exception = json.loads(exception)
error_message = """<div class='small text-muted'>{0}</div><br>""".format( error_message = """<div class='small text-muted'>{0}</div><br>""".format(
_(exception.get("message")) _(exception.get("message"))
) )
content += error_message content += error_message
except Exception:
pass
content += _("Regards,") + "<br>" + _("Administrator") content += _("Regards,") + "<br>" + _("Administrator")