Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
59c8a2bf
Commit
59c8a2bf
authored
Sep 15, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: fix exception raised by Storage.history() when oid doesn't exist
parent
df47e5b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
neo/client/Storage.py
neo/client/Storage.py
+3
-3
No files found.
neo/client/Storage.py
View file @
59c8a2bf
...
@@ -228,11 +228,11 @@ class Storage(BaseStorage.BaseStorage,
...
@@ -228,11 +228,11 @@ class Storage(BaseStorage.BaseStorage,
self
.
app
.
registerDB
(
db
,
limit
)
self
.
app
.
registerDB
(
db
,
limit
)
@
old_history_api
@
old_history_api
def
history
(
self
,
*
args
,
**
kw
):
def
history
(
self
,
oid
,
*
args
,
**
kw
):
try
:
try
:
return
self
.
app
.
history
(
*
args
,
**
kw
)
return
self
.
app
.
history
(
oid
,
*
args
,
**
kw
)
except
NEOStorageNotFoundError
:
except
NEOStorageNotFoundError
:
raise
KeyError
raise
POSException
.
POSKeyError
(
oid
)
def
sync
(
self
,
force
=
True
):
def
sync
(
self
,
force
=
True
):
# Increment by one, as we will use this as an excluded upper
# Increment by one, as we will use this as an excluded upper
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment