Commit 2e1e980c authored by Vincent Pelletier's avatar Vincent Pelletier

Resolver exceptions must be caught while undoing.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2245 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 98929963
......@@ -903,8 +903,11 @@ class Application(object):
# Load the version we were undoing to
undo_data, _ = loadBefore(oid, undone_tid)
# Resolve conflict
new_data = tryToResolveConflict(oid, data_tid, undone_tid, undo_data,
data)
try:
new_data = tryToResolveConflict(oid, data_tid, undone_tid,
undo_data, data)
except ConflictError:
new_data = None
if new_data is None:
raise UndoError('Some data were modified by a later ' \
'transaction', oid)
......
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