From 6c3dda4d8ab2fb46fc5fe152c848fb986d021bc5 Mon Sep 17 00:00:00 2001 From: Date: Sun, 28 Apr 2013 18:56:13 +0200 Subject: fix json parser --- issues.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/issues.py b/issues.py index 61582c4..bc93864 100755 --- a/issues.py +++ b/issues.py @@ -131,7 +131,7 @@ def handle_tracker_item(item, issue_title_prefix): if response.status_code == 500: print "ISSUE CAUSED SERVER SIDE ERROR AND WAS NOT SAVED!!! Import will continue." else: - issue = response.json() + issue = json.loads(response.content) if 'number' not in issue: raise RuntimeError("No 'number' in issue; response %d invalid" % response.status_code) number = issue['number'] -- cgit v1.2.3