Commit 3a396e67 authored by Vincent Pelletier's avatar Vincent Pelletier

BTrees doesn't like None keys in lookups.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2486 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e7cad717
......@@ -290,7 +290,10 @@ class BTreeDatabaseManager(DatabaseManager):
tid = tserial.maxKey(before_tid)
except ValueError:
tid = None
result = tserial.get(tid, None)
if tid is None:
result = None
else:
result = tserial.get(tid, None)
if result:
compression, checksum, data, value_serial = result
if before_tid is None:
......
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