Commit cdaef829 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

erp5_forge: fix BT export in VCS tab when WSGI is used

parent 7f920b14
......@@ -11,6 +11,6 @@ if not root:
if REQUEST is not None: # XXX workaround to prevent zodb bloat (bt build)
# This script is mostly used by javascript, we can abort the transaction
REQUEST.RESPONSE.write(vcs_tool.treeToXML(root))
raise ValueError("Abort transaction")
import transaction
transaction.doom()
return vcs_tool.treeToXML(root)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment