aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 8483d438..ad6dcd31 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -791,7 +791,7 @@ class Client:
log_fmt = 'In {}, {}'.format(name, tmp)
log.debug(log_fmt)
if resp.status == 429:
- retry = resp.headers['Retry-After'] / 1000.0
+ retry = float(resp.headers['Retry-After']) / 1000.0
yield from resp.release()
yield from asyncio.sleep(retry)
return (yield from self._rate_limit_helper(name, method, data))