projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d886f8
)
Handle 500 errors better.
author
Josh Roesslein
<jroesslein@gmail.com>
Tue, 18 Aug 2009 06:06:07 +0000
(
01:06
-0500)
committer
Josh Roesslein
<jroesslein@gmail.com>
Tue, 18 Aug 2009 06:06:07 +0000
(
01:06
-0500)
tweepy/binder.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/binder.py
b/tweepy/binder.py
index c91b68f0c8226e23df3f0cc21831c89c67ecf731..5b3fe62bb7c727e65cc6eb708b6c496dac4b6f8f 100644
(file)
--- a/
tweepy/binder.py
+++ b/
tweepy/binder.py
@@
-85,6
+85,8
@@
def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False,
resp = conn.getresponse()
# If an error was returned, throw an exception
+ if resp.status == 500:
+ raise TweepError('Twitter server error!')
if resp.status != 200:
raise TweepError(parse_error(resp.read()))