From 288c4e4f6177c2c0500b3c641afa7cd72cf5a955 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 21 Feb 2014 23:12:52 -0500 Subject: [PATCH] It's status_code, not status, in Requests --- tweepy/binder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/binder.py b/tweepy/binder.py index 474914c..d3614e3 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -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: -- 2.25.1