It's status_code, not status, in Requests
authorAaron Hill <aa1ronham@gmail.com>
Sat, 22 Feb 2014 04:12:52 +0000 (23:12 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 27 Apr 2014 02:03:11 +0000 (22:03 -0400)
tweepy/binder.py

index 474914ce26e9cb1f2ebc2692fa0c96ae812168cb..d3614e3121fc5a3ab26b4848cf389e5fadd0e907 100644 (file)
@@ -188,7 +188,7 @@ def bind_api(**config):
 
             # If an error was returned, throw an exception
             self.api.last_response = resp
-            if resp.status and not 200 <= resp.status < 300:
+            if resp.status_code and not 200 <= resp.status_code < 300:
                 try:
                     error_msg = self.parser.parse_error(resp.text)
                 except Exception: