Skip to content

Commit

Permalink
fix event tests (event data has no attribute "encryption_applied")
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Aug 30, 2024
1 parent 43ad0a4 commit a54aa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joppy/data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class BaseData:

def __post_init__(self) -> None:
# detect if data is encrypted
encryption_applied = getattr(self, "encryption_applied")
encryption_applied = getattr(self, "encryption_applied", False)
if encryption_applied is not None and bool(int(encryption_applied)):
raise NotImplementedError("Encryption is not supported")

Expand Down

0 comments on commit a54aa0d

Please sign in to comment.