mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix(minor): update frappe.error_log to new API (#30864)
* fix(minor): update frappe.error_log to new API * refactor: changes for updated log_error api Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -154,7 +154,7 @@ def run_bom_job(
|
||||
|
||||
except Exception:
|
||||
frappe.db.rollback()
|
||||
error_log = frappe.log_error(message=frappe.get_traceback(), title=_("BOM Update Tool Error"))
|
||||
error_log = doc.log_error("BOM Update Tool Error")
|
||||
|
||||
doc.db_set("status", "Failed")
|
||||
doc.db_set("error_log", error_log.name)
|
||||
|
||||
Reference in New Issue
Block a user