mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-10-28 15:59:04 +00:00
Raise DiscordServerError for 503 Service Unavailable errors
This commit is contained in:
1 parent
78c916a486
commit
351a1a1865
1 file changed
+2
@@ -241,6 +241,8 @@ class HTTPClient:
|
||||
raise Forbidden(r, data)
|
||||
elif r.status == 404:
|
||||
raise NotFound(r, data)
|
||||
elif r.status == 503:
|
||||
raise DiscordServerError(r, data)
|
||||
else:
|
||||
raise HTTPException(r, data)
|
||||
|
||||
|
||||
Reference in new issue
Block a user