Skip to content

Commit

Permalink
Assert state is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Dec 24, 2023
1 parent b60364a commit 289e273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def to_dict(self) -> dict:
"""
Return a dictionary representing this player object
"""
assert self.state is not None and self.state.value is not None

cmd = {
"id": self.id,
"login": self.login,
Expand Down

0 comments on commit 289e273

Please sign in to comment.