1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-11 16:36:14 +01:00

Display meaningful message for queries w/o project

Like: osc rq list -U $USER -t change_devel
This commit is contained in:
Sascha Peilicke 2013-06-17 16:26:00 +02:00
parent 4007800880
commit d338254bb7

View File

@ -2027,11 +2027,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# Check if project actually exists if result list is empty
if not results:
if project:
try:
show_project_meta(apiurl, project)
print('No results for {0}'.format(project))
except TypeError:
print('Project {0} does not exist'.format(project))
else:
print('No results')
return
results.sort(reverse=True)