Skip to content

Commit

Permalink
fix: Revert bad change to the encrypted fields (#25079)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Sep 19, 2024
1 parent eb6ab26 commit 234e67f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/helpers/encrypted_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 234e67f

Please sign in to comment.