Browse Source

Fix whitespace

pull/10287/head
imp 2 months ago
committed by GitHub
parent
commit
8967ab0b3e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/http.py

2
discord/http.py

@ -681,7 +681,7 @@ class HTTPClient:
# Global rate limit 429 wont have ratelimit headers (also can't tell if it's one-shot)
elif response.headers.get('X-RateLimit-Global'):
retry_after: float = data['retry_after'] #type: ignore
retry_after: float = data['retry_after'] # type: ignore
_log.warning('Global rate limit has been hit. Retrying in %.2f seconds.', retry_after)
self.global_reset_at = self.loop.time() + retry_after

Loading…
Cancel
Save