memory (sqlite): work around encoding issues with pickle
This commit is contained in:
parent
9d3f2be7b1
commit
fd4f70ac6c
1 changed files with 2 additions and 2 deletions
|
|
@ -535,7 +535,7 @@ class SqliteStorage(object):
|
|||
if uid != current['uid']:
|
||||
# new message
|
||||
try:
|
||||
extra = pickle.loads(extra or b"")
|
||||
extra = self._load_pickle(extra or b"")
|
||||
except EOFError:
|
||||
extra = {}
|
||||
current = {
|
||||
|
|
@ -1659,7 +1659,7 @@ class Updater(object):
|
|||
log.info("preparing message {}/{}".format(idx, total))
|
||||
id_, timestamp, message, extra = row
|
||||
try:
|
||||
extra = pickle.loads(str(extra or ""))
|
||||
extra = self._load_pickle(extra or b"")
|
||||
except EOFError:
|
||||
extra = {}
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Reference in a new issue