Permalink
Browse files

Merge pull request #8 from exhuma/master

In the latest request package, response.json is a method, not a field.
  • Loading branch information...
ttencate committed Mar 8, 2013
2 parents aa4bfe2 + 41f4a90 commit fdad3d190836efe03658cc3c4977a9dbae2da4a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 issues.py
View
@@ -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']

0 comments on commit fdad3d1

Please sign in to comment.