Commit 240d697f authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Fix error message reporting.

parent f60394d1
......@@ -125,7 +125,7 @@ def bind_api(path, parser, allowed_param=[], method='GET', require_auth=False,
api.last_response = resp
if resp.status != 200:
error_msg = parse_error(
error_msg = parse_error(json.loads(
except Exception:
error_msg = "Twitter error response: status code = %s" % resp.status
raise TweepError(error_msg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment