From 08f12721fe2e57f3a7e66ffc69787afbef0bb947 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Fri, 13 Aug 2010 09:51:20 +0200 Subject: [PATCH] another rq fix --- osc/commandline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 46d07fd8..56c4649d 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1571,11 +1571,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. return self.do_help(['help', 'request']) cmds = [ 'list', 'log', 'show', 'decline', 'reopen', 'clone', 'accept', 'approvenew', 'wipe', 'revoke', 'checkout', 'co' ] - if subcmd != 'review' and not args or args[0] not in cmds: + if subcmd != 'review' and args[0] not in cmds: raise oscerr.WrongArgs('Unknown request action %s. Choose one of %s.' \ % (args[0],', '.join(cmds))) cmds = [ 'list', 'add', 'decline', 'accept', 'new' ] - if subcmd == 'review' and not args or args[0] not in cmds: + if subcmd == 'review' and args[0] not in cmds: raise oscerr.WrongArgs('Unknown review action %s. Choose one of %s.' \ % (args[0],', '.join(cmds)))