From 3aa99df070391195621ccbe8bdd8141d76066c4b Mon Sep 17 00:00:00 2001 From: Prabeesh K Date: Thu, 9 Oct 2014 10:31:58 +0400 Subject: [PATCH] Fix AttributeError AttributeError: 'Response' object has no attribute 'status' --- tweepy/binder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/binder.py b/tweepy/binder.py index ed4b784..960e272 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -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 -- 2.25.1