mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
parent
d4b41234da
commit
a604a5ea9f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue