diff options
author | Simson Garfinkel <simsong@acm.org> | 2012-12-08 00:04:45 -0500 |
---|---|---|
committer | Simson Garfinkel <simsong@acm.org> | 2012-12-08 00:04:45 -0500 |
commit | 6e33f1b1bfd80173dbb5d2aa5f34a7730032fbd8 (patch) | |
tree | 9cb7e36490b31d7c5c95a148b56d519657a827ff | |
parent | 011f0b17dd06c717966d8147ed66cdb8b0568efe (diff) |
handles error if not authenticated
-rwxr-xr-x | issues.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |