1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

- small fix for commit d338254bb7

catch HTTPError instead of TypeError
This commit is contained in:
Marcus Huewe 2013-06-17 17:37:40 +02:00
parent d338254bb7
commit 58532bbac7

View File

@ -2031,7 +2031,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 TypeError:
except HTTPError:
print('Project {0} does not exist'.format(project))
else:
print('No results')