projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1928fe3
)
Accept 200, 201, and 202 as non-error response codes
author
Aaron Hill
<aa1ronham@gmail.com>
Sun, 9 Jun 2013 15:55:40 +0000
(11:55 -0400)
committer
Aaron Hill
<aa1ronham@gmail.com>
Sun, 9 Jun 2013 15:55:40 +0000
(11:55 -0400)
tweepy/binder.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/binder.py
b/tweepy/binder.py
index c5e99b9358187f7be53833bb1a1e1da907ae027c..f0b0803b4b43ca6c84f3d94381ccb2785d206ec4 100644
(file)
--- a/
tweepy/binder.py
+++ b/
tweepy/binder.py
@@
-165,7
+165,7
@@
def bind_api(**config):
# If an error was returned, throw an exception
self.api.last_response = resp
- if resp.status
!= 200
:
+ if resp.status
not in [200, 201, 202]
:
try:
error_msg = self.api.parser.parse_error(resp.read())
except Exception: