From: skrew Date: Fri, 9 May 2014 00:20:02 +0000 (+0200) Subject: Update streaming.py X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c42cb560efdb60ea6256a11f906a55095a8798fc;p=tweepy.git Update streaming.py --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 698e15a..54cd7e0 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -153,7 +153,7 @@ class Stream(object): if self.listener.on_error(resp.status_code) is False: break error_counter += 1 - if resp.status == 420: + if resp.status_code == 420: self.retry_time = max(self.retry_420_start, self.retry_time) sleep(self.retry_time) self.retry_time = min(self.retry_time * 2, self.retry_time_cap)