Browse Source

ratelimit fix

master
gsd 2 years ago
parent
commit
98d630d1be
  1. 4
      disco/api/ratelimit.py

4
disco/api/ratelimit.py

@ -70,8 +70,8 @@ class RouteState(LoggingClass):
if 'X-RateLimit-Remaining' not in response.headers:
return
self.remaining = int(response.headers.get('X-RateLimit-Remaining'))
self.reset_time = int(response.headers.get('X-RateLimit-Reset'))
self.remaining = int(float(response.headers.get('X-RateLimit-Remaining')))
self.reset_time = int(float(response.headers.get('X-RateLimit-Reset')))
def wait(self, timeout=None):
"""

Loading…
Cancel
Save