Commit f76842eb authored by Aaron1011's avatar Aaron1011
Browse files

Merge pull request #491 from prabeesh/master

Fix AttributeError
parents d9d5a864 3aa99df0
......@@ -178,7 +178,7 @@ def bind_api(**config):
self._reset_time = int(reset_time)
if self.wait_on_rate_limit and self._remaining_calls == 0 and (
# if ran out of calls before waiting switching retry last call
resp.status == 429 or resp.status == 420):
resp.status_code == 429 or resp.status_code == 420):
continue
retry_delay = self.retry_delay
# Exit request loop if non-retry error code
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment