From 47b53ce89f529128ddc74ad45dec84b67a0c0b7a Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 28 Dec 2017 17:06:14 +0100 Subject: [PATCH] Except only UnicodeDecodeError to check migration (fix #511) --- telethon/tl/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/session.py b/telethon/tl/session.py index 26c9576e..236c1096 100644 --- a/telethon/tl/session.py +++ b/telethon/tl/session.py @@ -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):