diff --git a/constance/migrations/0003_drop_pickle.py b/constance/migrations/0003_drop_pickle.py index 4abd268d..e9d8737d 100644 --- a/constance/migrations/0003_drop_pickle.py +++ b/constance/migrations/0003_drop_pickle.py @@ -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