Hi,

I spotted a broken link on http://urlgrabber.baseurl.org/examples.html
- to the module documentation.

Also I have the following code:

        g = urlgrabber.grabber.URLGrabber(reget='simple')
        try:
            g.urlgrab(url, filename=filepath)
        except urlgrabber.grabber.URLGrabError, e:
            if e.exception[1] != 'The requested URL returned error:
416 Requested Range Not Satisfiable':
                raise

I am getting the 416 exception when the file is complete:

urlgrabber.grabber.URLGrabError: [Errno 14] PYCURL ERROR 22 - "The
requested URL returned error: 416 Requested Range Not Satisfiable"

There appears to be no way to get the http code.  e.code equals 22.
Can anyone advise?

Thanks
Tristan
_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to