aboutsummaryrefslogtreecommitdiff
path: root/dev/github_jira_sync.py
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2014-07-19 18:24:21 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-07-19 20:06:28 -0700
commitd39e3b9673027bb9f4d1542e5a2386f73078eec0 (patch)
tree5e03596845eb72b5c0f2f01a05d392be8a7949e0 /dev/github_jira_sync.py
parent49e472744951d875627d78b0d6e93cd139232929 (diff)
downloadspark-d39e3b9673027bb9f4d1542e5a2386f73078eec0.tar.gz
spark-d39e3b9673027bb9f4d1542e5a2386f73078eec0.tar.bz2
spark-d39e3b9673027bb9f4d1542e5a2386f73078eec0.zip
SPARK-2596 HOTFIX: Deal with non-existent JIRAs.
A small bug that was found in our JIRA sync script.
Diffstat (limited to 'dev/github_jira_sync.py')
-rwxr-xr-xdev/github_jira_sync.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/dev/github_jira_sync.py b/dev/github_jira_sync.py
index 4b0e266bbe..8051080117 100755
--- a/dev/github_jira_sync.py
+++ b/dev/github_jira_sync.py
@@ -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