From 351a1a1865a85f30753884224d696850888bb787 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 16 Nov 2020 03:26:34 -0600 Subject: [PATCH] Raise DiscordServerError for 503 Service Unavailable errors --- discord/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/http.py b/discord/http.py index d1556e303..9459a9c55 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)