mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
- don't exit if the user made an invalid choice
This commit is contained in:
@@ -4649,7 +4649,8 @@ def request_interactive_review(apiurl, request):
|
||||
state_map = {'a': 'accepted', 'd': 'declined', 'r': 'revoked'}
|
||||
mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl)
|
||||
if mo is None:
|
||||
raise oscerr.WrongOptions('invalid choice: \'%s\'' % repl)
|
||||
print >>sys.stderr, 'invalid choice: \'%s\'' % repl
|
||||
continue
|
||||
state = state_map[mo.group(1)]
|
||||
msg = mo.group(2)
|
||||
footer = str(request)
|
||||
|
Reference in New Issue
Block a user