Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tempstorage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
tempstorage
Commits
3501e73d
Commit
3501e73d
authored
Sep 19, 2017
by
Roel Bruggink
Committed by
Hanno Schlichting
Sep 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise POSKeyError instead of KeyError in loadBefore. (#6)
This prevents a KeyError: '\x00\x00\x00\x00\x00\x00\x00\x00'
parent
696db9aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGES.rst
CHANGES.rst
+1
-0
src/tempstorage/TemporaryStorage.py
src/tempstorage/TemporaryStorage.py
+1
-1
No files found.
CHANGES.rst
View file @
3501e73d
...
...
@@ -3,6 +3,7 @@ Changelog
4.0.1 - unreleased
------------------
- Raise POSKeyError instead of KeyError in loadBefore.
4.0 - 2017-03-09
...
...
src/tempstorage/TemporaryStorage.py
View file @
3501e73d
...
...
@@ -184,7 +184,7 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
with
self
.
_lock
:
tids
=
[
stid
for
soid
,
stid
in
self
.
_conflict_cache
if
soid
==
oid
]
if
not
tids
:
raise
KeyError
(
oid
)
raise
POSException
.
POS
KeyError
(
oid
)
tids
.
sort
()
i
=
bisect
.
bisect_left
(
tids
,
tid
)
-
1
if
i
==
-
1
:
...
...
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