mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +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', []):
|
||||
rows.append((p_id, p_hash, None, None, None))
|
||||
return rows
|
||||
except (UnicodeDecodeError, json.decoder.JSONDecodeError):
|
||||
except UnicodeDecodeError:
|
||||
return [] # No entities
|
||||
|
||||
def _upgrade_database(self, old):
|
||||
|
|
Loading…
Reference in New Issue
Block a user