Handling parser errors from lxml in icon fetching.

This commit is contained in:
Samuel Clay 2011-01-30 13:24:17 -05:00
parent eefb189e52
commit 3f4018249f

View file

@ -189,7 +189,7 @@ class IconImporter(object):
icon_path = lxml.html.fromstring(content).xpath(
'//link[@rel="icon" or @rel="shortcut icon"]/@href'
)
except lxml.html.ParserError:
except lxml.ParserError:
return url
if icon_path: