Except only UnicodeDecodeError to check migration (fix #511)

This commit is contained in:
Lonami Exo 2017-12-28 17:06:14 +01:00
parent ea436a4fac
commit 47b53ce89f

View File

@ -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):