--- urlgrabber/grabber.py | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py index f6f57bd..c099d3e 100644 --- a/urlgrabber/grabber.py +++ b/urlgrabber/grabber.py @@ -1313,8 +1313,15 @@ class PyCurlFileObject(object): return try: + e = None self.curl_obj.perform() - except pycurl.error, e: + except pycurl.error, e: pass + + # translate pycurl errors + self._do_perform_exc(e) + + def _do_perform_exc(self, e): + if e: # XXX - break some of these out a bit more clearly # to other URLGrabErrors from # http://curl.haxx.se/libcurl/c/libcurl-errors.html -- 1.7.4.4 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel