diff --git a/masterblaster/member.py b/masterblaster/member.py index 5c49d45..48fd03c 100644 --- a/masterblaster/member.py +++ b/masterblaster/member.py @@ -46,7 +46,7 @@ def __init__( self.name: str = name self.player_id: str = playerId self.role: int = role - self.added_at: datetime = parser.isoparse(addedAt) + self.added_at: datetime = parser.isoparse(addedAt) if addedAt else None self.invited_at: Optional[datetime] = ( None if not invitedAt else parser.isoparse(invitedAt) )