summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas ten Cate <ttencate@gmail.com>2013-03-08 11:33:41 -0800
committerThomas ten Cate <ttencate@gmail.com>2013-03-08 11:33:41 -0800
commitfdad3d190836efe03658cc3c4977a9dbae2da4a2 (patch)
treea6fb224a99289a0478c768d19f8f3c1a0b579e21
parentaa4bfe2498c7726b02cdbbda6b794af9113219d3 (diff)
parent41f4a909a9b0812acd1d667c3d8faf6236cb423f (diff)
Merge pull request #8 from exhuma/master
In the latest request package, response.json is a method, not a field.
-rwxr-xr-xissues.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/issues.py b/issues.py
index d684165..1f5ca97 100755
--- a/issues.py
+++ b/issues.py
@@ -127,7 +127,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 = response.json()
if 'number' not in issue:
raise RuntimeError("No 'number' in issue; response %d invalid" % response.status_code)
number = issue['number']