mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
chore: error logging for auto material requests (#31103)
(cherry picked from commit ecb39d81e0)
Co-authored-by: Ankush Menat <me@ankush.dev>
This commit is contained in:
@@ -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")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user