mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 15:06:15 +01:00
do not crash, if nothing is specified. (#526401)
This commit is contained in:
parent
2f7070ae96
commit
b25b248a2e
@ -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.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user