Skip to content

Commit

Permalink
Handling a weird typeerror on feed parsaing.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelclay committed Jan 31, 2011
1 parent 196adf4 commit 70bb450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/rss_feeds/icon_importer.py
Expand Up @@ -190,7 +190,7 @@ def _url_from_html(self, content):
icon_path = lxml.html.fromstring(content).xpath(
'//link[@rel="icon" or @rel="shortcut icon"]/@href'
)
except lxml.etree.ParserError:
except (lxml.etree.ParserError, TypeError):
return url

if icon_path:
Expand Down

0 comments on commit 70bb450

Please sign in to comment.