Handle empty client_pickle
This commit is contained in:
parent
62dae5a0a2
commit
01a5065240
1 changed files with 1 additions and 1 deletions
2
external/messenger.py
vendored
2
external/messenger.py
vendored
|
@ -213,7 +213,7 @@ class MessengerBridge:
|
|||
self.init_backlog_length = int(cmd["data"]["initial_backlog"])
|
||||
client_file = "/tmp/fbclient_" + hashlib.sha224(cmd["data"]["email"].encode("utf-8")).hexdigest()
|
||||
|
||||
if "client_pickle" in cmd["data"]:
|
||||
if "client_pickle" in cmd["data"] and len(cmd["data"]["client_pickle"]) > 0:
|
||||
data = base64.b64decode(cmd["data"]["client_pickle"])
|
||||
data = zlib.decompress(data)
|
||||
self.client = pickle.loads(data)
|
||||
|
|
Loading…
Reference in a new issue