mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Handling parser errors from lxml in icon fetching.
This commit is contained in:
parent
eefb189e52
commit
3f4018249f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue