From b25b248a2e13e63a12d77dfd8e09d0c562f3cd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 7 Aug 2009 09:25:34 +0000 Subject: [PATCH] do not crash, if nothing is specified. (#526401) --- osc/commandline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 635b768d..0c7f4e42 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -610,6 +610,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. args = slash_split(args) + if len(args) < 1: + raise oscerr.WrongArgs('Please specify at least a project.') if len(args) > 2: raise oscerr.WrongArgs('Too many arguments.')