From: Aaron Hill Date: Sat, 22 Feb 2014 04:12:52 +0000 (-0500) Subject: It's status_code, not status, in Requests X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=288c4e4f6177c2c0500b3c641afa7cd72cf5a955;p=tweepy.git It's status_code, not status, in Requests --- 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: