fix(DX): capture tracebacks with context (#39060)
diff --git a/erpnext/utilities/bulk_transaction.py b/erpnext/utilities/bulk_transaction.py
index df21b61..679d5bd 100644
--- a/erpnext/utilities/bulk_transaction.py
+++ b/erpnext/utilities/bulk_transaction.py
@@ -62,7 +62,7 @@
task(log.transaction_name, log.from_doctype, log.to_doctype)
except Exception as e:
frappe.db.rollback(save_point="before_creation_state")
- update_log(log.name, "Failed", 1, str(frappe.get_traceback()))
+ update_log(log.name, "Failed", 1, str(frappe.get_traceback(with_context=True)))
else:
update_log(log.name, "Success", 1)
@@ -86,7 +86,7 @@
fail_count += 1
create_log(
doc_name,
- str(frappe.get_traceback()),
+ str(frappe.get_traceback(with_context=True)),
from_doctype,
to_doctype,
status="Failed",