Commit 336f4303 authored by Vincent Pelletier's avatar Vincent Pelletier

Also raise a KeyError when object creation has been undone.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1856 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 280a5774
No related merge requests found
......@@ -924,7 +924,8 @@ class Application(object):
if not isinstance(self.local_var.history, tuple):
raise NEOStorageError('history failed')
if self.local_var.history[1] == []:
if self.local_var.history[1] == [] or \
self.local_var.history[1][0][1] == 0:
# KeyError expected if no history was found
# XXX: this may requires an error from the storages
raise KeyError
......
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