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:
exception = json.loads(exception) try:
error_message = """<div class='small text-muted'>{0}</div><br>""".format( exception = json.loads(exception)
_(exception.get("message")) error_message = """<div class='small text-muted'>{0}</div><br>""".format(
) _(exception.get("message"))
content += error_message )
content += error_message
except Exception:
pass
content += _("Regards,") + "<br>" + _("Administrator") content += _("Regards,") + "<br>" + _("Administrator")