1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-05 20:58:42 +02:00

- core.request_interactive_review: don't execute review code path if no reviews are present

This commit is contained in:
Marcus Huewe
2011-10-10 22:17:40 +02:00
parent b190f27d00
commit 6cd541967e

View File

@@ -5983,6 +5983,7 @@ def request_interactive_review(apiurl, request, initial_cmd=''):
reviews = [r for r in request.reviews if r.state == 'new']
if not reviews:
change_request_state(apiurl, request.reqid, state, msg)
break
print 'Please chose one of the following reviews:'
for i in range(len(reviews)):
fmt = Request.format_review(reviews[i])