This commit is contained in:
Alexandr Artemyev 2024-11-04 19:09:19 +05:00 committed by GitHub
parent d4b41234da
commit a604a5ea9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ def is_already_migrated(value):
data = json.loads(value)
if isinstance(data, dict) and set(data.keys()) == {'__type__', '__value__'}:
return True
except (json.JSONDecodeError, TypeError):
except (json.JSONDecodeError, TypeError, UnicodeDecodeError):
return False
return False