Skip to content

Commit

Permalink
Fix score nonetype
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 30, 2023
1 parent b00fb5f commit fddd498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def get_full_replay(self, id: int) -> bytes | None:

score = scores.fetch_by_id(id)

if not score:
return

stream = StreamOut()
stream.u8(score.mode)
stream.s32(score.client_version)
Expand Down

0 comments on commit fddd498

Please sign in to comment.