[UG] bad link in example page and query on http status code
Tristan Hill
tristan at saticed.me.uk
Mon Apr 28 18:28:07 UTC 2014
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
More information about the Yum-devel
mailing list