mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 16:56:15 +01:00
- core.request_interactive_review: don't execute review code path if no reviews are present
This commit is contained in:
parent
b190f27d00
commit
6cd541967e
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user