diff --git a/osc/core.py b/osc/core.py index a48de9d2..9d4c78d4 100644 --- a/osc/core.py +++ b/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