Allow download of reviews from deleted accounts

Change-Id: Ib431a7c44ef657ddd5507d79a7934fed5904a7cb
This commit is contained in:
Vishvananda Ishaya 2012-09-25 15:54:32 -07:00 committed by James E. Blair
parent 6df3827c23
commit 79c3403c9f

View File

@ -551,7 +551,10 @@ def download_review(review, masterbranch, remote):
topic = review
except KeyError:
topic = review
author = re.sub('\W+', '_', review_info['owner']['name']).lower()
if review_info.get('owner'):
author = re.sub('\W+', '_', review_info['owner']['name']).lower()
else:
author = 'unknown'
branch_name = "review/%s/%s" % (author, topic)
revision = review_info['currentPatchSet']['revision']
refspec = review_info['currentPatchSet']['ref']