mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
- find_default_project: fixed indention, only "catch" urllib2.HTTPError
This commit is contained in:
parent
64f9dca08b
commit
c3d5516bf8
10
osc/core.py
10
osc/core.py
@ -6178,11 +6178,11 @@ def find_default_project(apiurl=None, package=None):
|
||||
# search through the list, where package exists ...
|
||||
for prj in candidates:
|
||||
try:
|
||||
# any fast query will do here.
|
||||
show_package_meta(apiurl, prj, package)
|
||||
return prj
|
||||
except:
|
||||
pass
|
||||
# any fast query will do here.
|
||||
show_package_meta(apiurl, prj, package)
|
||||
return prj
|
||||
except urllib2.HTTPError:
|
||||
pass
|
||||
return None
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user