mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-05 22:23:15 +03:00
Assert hash is not None when migrating from JSON sessions
This commit is contained in:
parent
146a91f837
commit
045f7f5643
|
@ -163,6 +163,7 @@ class Session:
|
||||||
|
|
||||||
rows = []
|
rows = []
|
||||||
for p_id, p_hash in data.get('entities', []):
|
for p_id, p_hash in data.get('entities', []):
|
||||||
|
if p_hash is not None:
|
||||||
rows.append((p_id, p_hash, None, None, None))
|
rows.append((p_id, p_hash, None, None, None))
|
||||||
return rows
|
return rows
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user