Fix bug 901030

Change-Id: I72d50629df20de874217d536fa49217e941a2a99
This commit is contained in:
Lorin Hochstein
2011-12-06 20:51:11 -05:00
parent d1715ba387
commit d40481b190

View File

@@ -437,8 +437,11 @@ def download_review(review):
print "Could not find a gerrit review with id: %s" % review
return 1
topic = review_info['topic']
if topic == "master":
try:
topic = review_info['topic']
if topic == "master":
topic = review
except KeyError:
topic = review
author = re.sub('\W+', '_', review_info['owner']['name']).lower()
branch_name = "review/%s/%s" % (author, topic)