Skip to content

Commit

Permalink
Fix #593 (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogost authored Nov 4, 2024
1 parent d4b4123 commit a604a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constance/migrations/0003_drop_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a604a5e

Please sign in to comment.