diff options
author | Alex Auvolat <alex@adnab.me> | 2020-03-05 22:55:11 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-03-05 22:55:11 +0100 |
commit | 01a506524067e153891b868fefeb5001d97ae583 (patch) | |
tree | 2e14de65263743505f64441b7a74858b87bca239 /external | |
parent | 62dae5a0a2ad9cead08aa13810561e9436d5a40f (diff) | |
download | easybridge-01a506524067e153891b868fefeb5001d97ae583.tar.gz easybridge-01a506524067e153891b868fefeb5001d97ae583.zip |
Handle empty client_pickle
Diffstat (limited to 'external')
-rwxr-xr-x | external/messenger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/messenger.py b/external/messenger.py index cd175e1..89cf5be 100755 --- a/external/messenger.py +++ b/external/messenger.py @@ -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) |