test: don't silently fail reposts in tests (#31559)
This commit is contained in:
parent
8b69a3ec7a
commit
4ec85cb2f0
@ -138,6 +138,11 @@ def repost(doc):
|
|||||||
doc.set_status("Completed")
|
doc.set_status("Completed")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
if frappe.flags.in_test:
|
||||||
|
# Don't silently fail in tests,
|
||||||
|
# there is no reason for reposts to fail in CI
|
||||||
|
raise
|
||||||
|
|
||||||
frappe.db.rollback()
|
frappe.db.rollback()
|
||||||
traceback = frappe.get_traceback()
|
traceback = frappe.get_traceback()
|
||||||
doc.log_error("Unable to repost item valuation")
|
doc.log_error("Unable to repost item valuation")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user