1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01: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: try:
show_project_meta(apiurl, project) show_project_meta(apiurl, project)
print('No results for {0}'.format(project)) print('No results for {0}'.format(project))
except TypeError: except HTTPError:
print('Project {0} does not exist'.format(project)) print('Project {0} does not exist'.format(project))
else: else:
print('No results') print('No results')