From a604a5ea9f686f1e2692c7496329945b4765607f Mon Sep 17 00:00:00 2001 From: Alexandr Artemyev Date: Mon, 4 Nov 2024 19:09:19 +0500 Subject: [PATCH] Fix #593 (#597) --- constance/migrations/0003_drop_pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constance/migrations/0003_drop_pickle.py b/constance/migrations/0003_drop_pickle.py index 4abd268..e9d8737 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