Skip to content

Commit

Permalink
Get team raises TeamDoesNotExist on 400 instead of 404.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jvessella committed Feb 19, 2024
1 parent 2c64ade commit 9448789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamebrain/clients/gameboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def get_team(team_id: str) -> TeamData | None:
try:
return await _gameboard_get(f"teams/{team_id}")
except RequestFailure as e:
if e.status_code == 404:
if e.status_code == 400:
raise TeamDoesNotExist
else:
return None
Expand Down

0 comments on commit 9448789

Please sign in to comment.