1
0
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:
Marcus Huewe
2010-02-25 14:32:24 +01:00
parent 12d8824e93
commit 19d4d696ae

View File

@@ -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)