Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
tposejank authored Dec 11, 2024
1 parent e38bae9 commit 7105adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leaderboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def getLeaderboardOf(su, eg1, instrument, page, season):
'Authorization': f'Bearer {eg1}'
}
response = requests.request("GET", url, headers=headers)
if response.status_code != 404:
if response.status_code != 404 and response.status_code != 500:
response.raise_for_status()
else:
print('WARNING: 404 ERROR\n' * 20)
print('WARNING: ' + str(response.status_code) + ' ERROR\n' * 20)
return
return response.json()

Expand Down

0 comments on commit 7105adc

Please sign in to comment.