We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad27874 commit 2030dddCopy full SHA for 2030ddd
rglapi.py
@@ -104,6 +104,10 @@ async def get_player(self, steam_id: int):
104
) as player_data:
105
if player_data.status == 429:
106
raise RateLimitException("Rate limited by the RGL API")
107
+ if player_data.status == 500:
108
+ raise LookupError(
109
+ "RGL API is currently down. Please try again later."
110
+ )
111
if player_data.status != 200:
112
raise LookupError("Player does not exist in RGL")
113
return await player_data.json()
0 commit comments