Commit 782c41e1 authored by Grégory Wisniewski's avatar Grégory Wisniewski

The loadBefore implementation must return None for an unknown OID.

See RevisionTests.checkLoadBeforeCreation test case.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1804 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b59fbe42
...@@ -87,7 +87,7 @@ class Storage(BaseStorage.BaseStorage, ...@@ -87,7 +87,7 @@ class Storage(BaseStorage.BaseStorage,
try: try:
return self.app.loadBefore(oid=oid, tid=tid) return self.app.loadBefore(oid=oid, tid=tid)
except NEOStorageNotFoundError: except NEOStorageNotFoundError:
raise POSException.POSKeyError (oid, tid) return None
def iterator(self, start=None, stop=None): def iterator(self, start=None, stop=None):
return self.app.iterator(start, stop) return self.app.iterator(start, stop)
......
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