From 234e67f71ce3577b5b781d075d10f317ea552395 Mon Sep 17 00:00:00 2001 From: Ben White Date: Thu, 19 Sep 2024 16:15:33 +0200 Subject: [PATCH] fix: Revert bad change to the encrypted fields (#25079) --- posthog/helpers/encrypted_fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posthog/helpers/encrypted_fields.py b/posthog/helpers/encrypted_fields.py index 6d6d63f4b0295..ccbecde296ce2 100644 --- a/posthog/helpers/encrypted_fields.py +++ b/posthog/helpers/encrypted_fields.py @@ -71,9 +71,9 @@ def to_python(self, value): try: value = self.f.decrypt(bytes(value, "utf-8")).decode("utf-8") except InvalidToken: - return None + pass except UnicodeEncodeError: - return None + pass return super().to_python(value) # type: ignore def clean(self, value, model_instance):