Commit 0e0ae7b5 authored by Vincent Pelletier's avatar Vincent Pelletier

Raise instead of continuing if askObjectHistory returned the history of another object.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@713 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a3e5eaa0
...@@ -913,7 +913,9 @@ class Application(object): ...@@ -913,7 +913,9 @@ class Application(object):
continue continue
if self.local_var.history[0] != oid: if self.local_var.history[0] != oid:
# Got history for wrong oid # Got history for wrong oid
continue raise NEOStorageError('inconsistency in storage: asked oid ' \
'%r, got %r' % (
oid, self.local_var.history[0]))
if not isinstance(self.local_var.history, tuple): if not isinstance(self.local_var.history, tuple):
raise NEOStorageError('history failed') raise NEOStorageError('history failed')
......
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