1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 00:56:15 +01:00

Catch specific exception. Catch-all is calling for error

This commit is contained in:
Sascha Peilicke 2013-06-17 16:21:32 +02:00
parent 0ac1d32945
commit 4007800880

View File

@ -2030,7 +2030,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
try:
show_project_meta(apiurl, project)
print('No results for {0}'.format(project))
except:
except TypeError:
print('Project {0} does not exist'.format(project))
return