Commit 59c8a2bf authored by Julien Muchembled's avatar Julien Muchembled

client: fix exception raised by Storage.history() when oid doesn't exist

parent df47e5b1
......@@ -228,11 +228,11 @@ class Storage(BaseStorage.BaseStorage,
self.app.registerDB(db, limit)
@old_history_api
def history(self, *args, **kw):
def history(self, oid, *args, **kw):
try:
return self.app.history(*args, **kw)
return self.app.history(oid, *args, **kw)
except NEOStorageNotFoundError:
raise KeyError
raise POSException.POSKeyError(oid)
def sync(self, force=True):
# Increment by one, as we will use this as an excluded upper
......
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