From 240d697f378f85271278c47640d3328996db606e Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Wed, 14 Oct 2009 14:09:33 -0500 Subject: [PATCH] Fix error message reporting. --- tweepy/binder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/binder.py b/tweepy/binder.py index 9097d75..3bf1bf5 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -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) -- 2.25.1