mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
revert back to throwing the httplib2 error, to be
able to preserve http headers etc
This commit is contained in:
parent
048414088f
commit
494381866d
@ -525,7 +525,7 @@ class Osc(cmdln.Cmdln):
|
||||
devloc = None
|
||||
try:
|
||||
devloc = show_develproject(apiurl, dst_project, dst_package)
|
||||
except oscerr.APIError, e:
|
||||
except urllib2.HTTPError:
|
||||
print >>sys.stderr, """\
|
||||
Warning: failed to fetch meta data for '%s' package '%s' (new package?) """ \
|
||||
% (dst_project, dst_package)
|
||||
|
@ -1573,7 +1573,7 @@ def show_package_meta(apiurl, prj, pac):
|
||||
return f.readlines()
|
||||
except urllib2.HTTPError, e:
|
||||
e.osc_msg = 'Error getting meta for project \'%s\' package \'%s\'' % (prj, pac)
|
||||
raise oscerr.APIError(e.osc_msg)
|
||||
raise
|
||||
|
||||
|
||||
def show_develproject(apiurl, prj, pac):
|
||||
|
Loading…
Reference in New Issue
Block a user