Update streaming.py
authorskrew <skrew@rootmail.org>
Fri, 9 May 2014 00:20:02 +0000 (02:20 +0200)
committerskrew <skrew@rootmail.org>
Fri, 9 May 2014 00:20:02 +0000 (02:20 +0200)
tweepy/streaming.py

index 698e15a442e534711e29cfbf9832b582e551e22a..54cd7e025e12327df51fb3ff017bbf4d7da0b60f 100644 (file)
@@ -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)