mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 10:32:59 +00:00
Raise DiscordServerError for 503 Service Unavailable errors
This commit is contained in:
@@ -241,6 +241,8 @@ class HTTPClient:
|
|||||||
raise Forbidden(r, data)
|
raise Forbidden(r, data)
|
||||||
elif r.status == 404:
|
elif r.status == 404:
|
||||||
raise NotFound(r, data)
|
raise NotFound(r, data)
|
||||||
|
elif r.status == 503:
|
||||||
|
raise DiscordServerError(r, data)
|
||||||
else:
|
else:
|
||||||
raise HTTPException(r, data)
|
raise HTTPException(r, data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user