From c42cb560efdb60ea6256a11f906a55095a8798fc Mon Sep 17 00:00:00 2001 From: skrew Date: Fri, 9 May 2014 02:20:02 +0200 Subject: [PATCH] Update streaming.py --- tweepy/streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1