Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
240d697f
Commit
240d697f
authored
Oct 14, 2009
by
Josh Roesslein
Browse files
Fix error message reporting.
parent
f60394d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/binder.py
View file @
240d697f
...
...
@@ -125,7 +125,7 @@ def bind_api(path, parser, allowed_param=[], method='GET', require_auth=False,
api
.
last_response
=
resp
if
resp
.
status
!=
200
:
try
:
error_msg
=
parse_error
(
resp
.
read
())
error_msg
=
parse_error
(
json
.
loads
(
resp
.
read
())
)
except
Exception
:
error_msg
=
"Twitter error response: status code = %s"
%
resp
.
status
raise
TweepError
(
error_msg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment