diff --git a/authentik/core/migrations/0046_session_and_more.py b/authentik/core/migrations/0046_session_and_more.py index 00ea6b6ab6c4..1a681ea1f5c3 100644 --- a/authentik/core/migrations/0046_session_and_more.py +++ b/authentik/core/migrations/0046_session_and_more.py @@ -31,7 +31,10 @@ def dumps(self, obj): def loads(self, data): """Unpickle data to be loaded from redis""" - return pickle.loads(data) # nosec + try: + return pickle.loads(data) # nosec + except Exception: + return {} def _migrate_session(