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

revert back to throwing the httplib2 error, to be

able to preserve http headers etc
This commit is contained in:
Dirk Mueller 2008-07-23 20:56:20 +00:00
parent 048414088f
commit 494381866d
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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):