summaryrefslogtreecommitdiff
path: root/issues.py
diff options
context:
space:
mode:
Diffstat (limited to 'issues.py')
-rwxr-xr-xissues.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/issues.py b/issues.py
index 1a7ff58..d50c3b1 100755
--- a/issues.py
+++ b/issues.py
@@ -128,6 +128,8 @@ def handle_tracker_item(item, issue_title_prefix):
print "ISSUE CAUSED SERVER SIDE ERROR AND WAS NOT SAVED!!! Import will continue."
else:
issue = response.json
+ if 'number' not in issue:
+ raise RuntimeError("No 'number' in issue; response %d invalid" % response.status_code)
number = issue['number']
print 'Attaching labels: %s' % labels
rest_call('POST', 'issues/%s/labels' % (number), labels)