Skip to content
Snippets Groups Projects
Commit d39e3b96 authored by Patrick Wendell's avatar Patrick Wendell
Browse files

SPARK-2596 HOTFIX: Deal with non-existent JIRAs.

A small bug that was found in our JIRA sync script.
parent 49e47274
No related branches found
No related tags found
No related merge requests found
......@@ -116,8 +116,13 @@ for issue, pr in sorted(jira_prs, key=lambda (k, v): int(v['number'])):
url = pr['html_url']
title = "[Github] Pull Request #%s (%s)" % (pr['number'], pr['user']['login'])
existing_links = map(lambda l: l.raw['object']['url'], jira_client.remote_links(issue))
try:
existing_links = map(lambda l: l.raw['object']['url'], jira_client.remote_links(issue))
except:
print "Failure reading JIRA %s (does it exist?)" % issue
print sys.exc_info()[0]
continue
if url in existing_links:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment