aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorHarmon <[email protected]>2020-11-16 03:26:34 -0600
committerRapptz <[email protected]>2020-11-21 22:16:40 -0500
commit351a1a1865a85f30753884224d696850888bb787 (patch)
tree0c908942b3bc15c15d32abfd073ed78d018835b6 /discord/http.py
parentEmphasize intents in the constructors of the examples (diff)
downloaddiscord.py-351a1a1865a85f30753884224d696850888bb787.tar.xz
discord.py-351a1a1865a85f30753884224d696850888bb787.zip
Raise DiscordServerError for 503 Service Unavailable errors
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py
index d1556e30..9459a9c5 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -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)