projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
431dd76
)
It's status_code, not status, in Requests
author
Aaron Hill
<aa1ronham@gmail.com>
Sat, 22 Feb 2014 04:12:52 +0000
(23:12 -0500)
committer
Aaron Hill
<aa1ronham@gmail.com>
Sun, 27 Apr 2014 02:03:11 +0000
(22:03 -0400)
tweepy/binder.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/binder.py
b/tweepy/binder.py
index 474914ce26e9cb1f2ebc2692fa0c96ae812168cb..d3614e3121fc5a3ab26b4848cf389e5fadd0e907 100644
(file)
--- 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: