# HG changeset patch # User Goffi # Date 1622808478 -7200 # Node ID 31cbcdd096a2cc1a2aaa0b58bd36512d7387b155 # Parent ae5f63e5ed2cd06b09117d0cdb27f8db68767524 memory (sqlite): work around encoding issues with pickle diff -r ae5f63e5ed2c -r 31cbcdd096a2 sat/memory/sqlite.py --- a/sat/memory/sqlite.py Thu Jun 03 17:59:41 2021 +0200 +++ b/sat/memory/sqlite.py Fri Jun 04 14:07:58 2021 +0200 @@ -535,7 +535,7 @@ 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 @@ 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: