mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 05:04:33 +03:00
Except only UnicodeDecodeError to check migration (fix #511)
This commit is contained in:
parent
ea436a4fac
commit
47b53ce89f
|
@ -154,7 +154,7 @@ class Session:
|
||||||
for p_id, p_hash in data.get('entities', []):
|
for p_id, p_hash in data.get('entities', []):
|
||||||
rows.append((p_id, p_hash, None, None, None))
|
rows.append((p_id, p_hash, None, None, None))
|
||||||
return rows
|
return rows
|
||||||
except (UnicodeDecodeError, json.decoder.JSONDecodeError):
|
except UnicodeDecodeError:
|
||||||
return [] # No entities
|
return [] # No entities
|
||||||
|
|
||||||
def _upgrade_database(self, old):
|
def _upgrade_database(self, old):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user