Assert hash is not None when migrating from JSON sessions

This commit is contained in:
Lonami Exo 2018-01-10 10:46:43 +01:00
parent 146a91f837
commit 045f7f5643

View File

@ -163,6 +163,7 @@ class Session:
rows = []
for p_id, p_hash in data.get('entities', []):
if p_hash is not None:
rows.append((p_id, p_hash, None, None, None))
return rows
except UnicodeDecodeError: