Commit 3aa99df0 authored by Prabeesh K's avatar Prabeesh K
Browse files

Fix AttributeError

AttributeError: 'Response' object has no attribute 'status'
parent d9d5a864
......@@ -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