summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <floe@butterbrot.org>2013-04-28 18:56:13 +0200
committer <floe@butterbrot.org>2013-04-28 18:56:13 +0200
commit6c3dda4d8ab2fb46fc5fe152c848fb986d021bc5 (patch)
tree147fe7bb8ea739337b14d5e3afd065eec88ffe71
parentdcdff90216206e72cc024dfa2d687d75b39ab68e (diff)
fix json parser
-rwxr-xr-xissues.py2
1 files changed, 1 insertions, 1 deletions
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']