Merge "Avoid a stacktrace when no reviews are pending"

This commit is contained in:
Jenkins
2014-07-29 18:50:48 +00:00
committed by Gerrit Code Review

View File

@@ -790,6 +790,10 @@ def list_reviews(remote):
exception=CannotQueryOpenChangesets,
parse_exc=CannotParseOpenChangesets)
if not reviews:
print("No pending reviews")
return
REVIEW_FIELDS = ('number', 'branch', 'subject')
FIELDS = range(len(REVIEW_FIELDS))
if check_color_support():