From: Prabeesh K Date: Thu, 9 Oct 2014 06:31:58 +0000 (+0400) Subject: Fix AttributeError X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3aa99df070391195621ccbe8bdd8141d76066c4b;p=tweepy.git Fix AttributeError AttributeError: 'Response' object has no attribute 'status' --- 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