Commit efca1280 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

MVCC adapter use less args for load

parent b82d32d2
......@@ -103,7 +103,11 @@ class PickleUpdater(ObjectReader, ObjectWriter, object):
self.lazy = LazyBTree()
self.oid_dict = {}
self.oid_set = set()
p, serial = self._conn._storage.load(oid, '')
try:
p, serial = self._conn._storage.load(oid, '')
except TypeError:
# MVCCAdapter of ZODB5
p, serial = self._conn._storage.load(oid)
unpickler = self._get_unpickler(p)
def find_global(*args):
self.do_migrate = args != (klass.__module__, klass.__name__) and \
......
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