Commit 587279c0 authored by Barry Warsaw's avatar Barry Warsaw

store(): It is possible that the `serial' argument got passed to us as

None.  If a non-resolvable conflict error occurs, we try to coerce
serial to something more humanly readable, but U64() can't be passed a
None, so let's be a bit more robust.
parent 62c44838
......@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
__version__ = '$Revision: 1.36 $'.split()[-2:][0]
__version__ = '$Revision: 1.37 $'.split()[-2:][0]
import sys
import struct
......@@ -591,7 +591,7 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
else:
raise POSException.ConflictError(
'serial number mismatch (was: %s, has: %s)' %
(U64(oserial), U64(serial)))
(U64(oserial), serial and U64(serial)))
# Do we already know about this version? If not, we need to
# record the fact that a new version is being created. `version'
# will be the empty string when the transaction is storing on the
......
......@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
__version__ = '$Revision: 1.36 $'.split()[-2:][0]
__version__ = '$Revision: 1.37 $'.split()[-2:][0]
import sys
import struct
......@@ -591,7 +591,7 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
else:
raise POSException.ConflictError(
'serial number mismatch (was: %s, has: %s)' %
(U64(oserial), U64(serial)))
(U64(oserial), serial and U64(serial)))
# Do we already know about this version? If not, we need to
# record the fact that a new version is being created. `version'
# will be the empty string when the transaction is storing on the
......
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