Skip to content

Commit

Permalink
bugfix in error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Sep 7, 2024
1 parent 2f70888 commit eca0f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cogs/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def get_hiscore_data(label_id: int, limit: int = 5000):
logger.error(f"expected dict but got {type(last_record)}, {last_record=}")
break

last_player_id = data.get("Player_id", None)
last_player_id = last_record.get("Player_id", None)
if last_player_id is None:
logger.error(f"expected int but got None, {last_record=}")
break
Expand Down

0 comments on commit eca0f21

Please sign in to comment.