Skip to content

Commit

Permalink
Fix KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 9, 2025
1 parent 89aa64a commit 01e982a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ async def import_game(request):
# print(data)
# print("-----------------")

wp = data["White"]
bp = data["Black"]
wp = data.get("White", "White")
bp = data.get("Black", "Black")

try:
wplayer = await app_state.users.get(wp)
Expand Down

0 comments on commit 01e982a

Please sign in to comment.