Allow download of reviews from deleted accounts

Change-Id: Ib85345e36087c4f1e2807b854a1805cf71ea79c8
This commit is contained in:
Vishvananda Ishaya
2012-09-25 15:54:32 -07:00
parent e766496b0b
commit 60ce57115d

View File

@@ -678,7 +678,7 @@ def download_review(review, remote, masterbranch):
if not topic or topic == masterbranch:
topic = review
author = re.sub('\W+', '_', r.owner.name.lower())
author = re.sub('\W+', '_', r.owner.name.lower()) if r.owner else 'unknown'
branch_name = "review/%s/%s" % (author, topic)
revision = r.patchset.revision
refspec = r.patchset.ref