mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-07 01:30:03 +02:00
do not crash, if nothing is specified. (#526401)
This commit is contained in:
@@ -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.')
|
||||
|
||||
|
Reference in New Issue
Block a user