Skip to content

Commit

Permalink
Check if field is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Oct 9, 2024
1 parent 3a5d54a commit cd7ea8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fixattiosync/fixresources.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class FixUser:

def __post_init__(self) -> None:
self.registered_at = self.created_at.replace(microsecond=0)
self.last_active_at = self.last_active.replace(microsecond=0)
if self.last_active is not None:
self.last_active_at = self.last_active.replace(microsecond=0)

def __eq__(self: Self, other: Any) -> bool:
if (
Expand Down

0 comments on commit cd7ea8d

Please sign in to comment.