Skip to content

Commit

Permalink
fix: (auto-merge) Use frappe.log_error instead of doc.log_error
Browse files Browse the repository at this point in the history
- The latter is only on develop
  • Loading branch information
marination committed May 27, 2022
1 parent 6d65e2b commit bced6a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,5 @@ def handle_exception(doc: "BOMUpdateLog") -> None:
"Rolls back and fails BOM Update Log."

frappe.db.rollback()
error_log = doc.log_error("BOM Update Tool Error")
error_log = frappe.log_error(title=_("BOM Update Tool Error"))
set_values_in_log(doc.name, {"status": "Failed", "error_log": error_log.name})

0 comments on commit bced6a0

Please sign in to comment.