[yum-commits] yum/yumRepo.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Fri Sep 7 07:05:53 UTC 2012
yum/yumRepo.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit db0d1e1ae031d464c0e74aadaae9082197429a11
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Thu Sep 6 16:39:22 2012 +0200
cleanup: Use URLGrabError consistently
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 7d5d34e..a6c3122 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -814,7 +814,7 @@ class YumRepository(Repository, config.RepoConf):
ug = URLGrabber(progress_obj = self.callback, **ugopts)
result = ug.urlgrab(url, local, text="%s/metalink" % self)
- except urlgrabber.grabber.URLGrabError, e:
+ except URLGrabError, e:
if not os.path.exists(self.metalink_filename):
msg = ("Cannot retrieve metalink for repository: %s. "
"Please verify its path and try again" % self )
@@ -1848,7 +1848,7 @@ Insufficient space in download directory %s
ugopts = self._default_grabopts()
try:
fo = urlgrabber.grabber.urlopen(url, **ugopts)
- except urlgrabber.grabber.URLGrabError, e:
+ except URLGrabError, e:
print "Could not retrieve mirrorlist %s error was\n%s: %s" % (url, e.args[0], misc.to_unicode(e.args[1]))
fo = None
@@ -2012,7 +2012,7 @@ def getMirrorList(mirrorlist, pdict = None):
try:
fo = urlresolver.urlopen(url, proxies=pdict)
- except urlgrabber.grabber.URLGrabError, e:
+ except URLGrabError, e:
print "Could not retrieve mirrorlist %s error was\n%s: %s" % (url, e.args[0], misc.to_unicode(e.args[1]))
fo = None
More information about the Yum-commits
mailing list