projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f6634
)
Propagate connection failure exceptions up through verify_credentials
author
Clay McClure
<Clay.McClure@cmgdigital.com>
Thu, 30 Dec 2010 23:44:55 +0000
(07:44 +0800)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Fri, 31 Dec 2010 05:48:43 +0000
(13:48 +0800)
tweepy/api.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/api.py
b/tweepy/api.py
index a5c687a0dcd124c21dcd40d76481d4e4c80ca138..b2304b63ec0e94f227e63f8fa2a2c63bdf6559b5 100644
(file)
--- a/
tweepy/api.py
+++ b/
tweepy/api.py
@@
-299,8
+299,10
@@
class API(object):
payload_type = 'user',
require_auth = True
)(self)
- except TweepError:
- return False
+ except TweepError, e:
+ if e.response and e.response.status == 401:
+ return False
+ raise
""" account/rate_limit_status """
rate_limit_status = bind_api(