aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index e660f6cb..0150a9bd 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -154,7 +154,7 @@ class HTTPClient:
# check if we have rate limit header information
remaining = r.headers.get('X-Ratelimit-Remaining')
- if remaining == '0':
+ if remaining == '0' and r.status != 429:
# we've depleted our current bucket
if header_bypass_delay is None:
now = parsedate_to_datetime(r.headers['Date'])