mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-16 10:33:09 +00:00
add warning on decompress errors
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2375 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d0b67a2892
commit
4972a5b2f4
1 changed files with 3 additions and 1 deletions
|
|
@ -541,7 +541,9 @@ class HttpUrl (urlbase.UrlBase, proxysupport.ProxySupport):
|
|||
else:
|
||||
f = gzip.GzipFile('', 'rb', 9,
|
||||
StringIO.StringIO(self.data))
|
||||
except zlib.error:
|
||||
except zlib.error, msg:
|
||||
self.add_warning(_("Decompress error %(err)s") % \
|
||||
{"err": str(msg)})
|
||||
f = StringIO.StringIO(self.data)
|
||||
self.data = f.read()
|
||||
self.downloadtime = time.time() - t
|
||||
|
|
|
|||
Loading…
Reference in a new issue