Stop logging a common html parsing error that we're ignoring anyway.

This commit is contained in:
Jim Miller 2015-09-08 09:31:06 -05:00
parent e30bd1adcc
commit 0e17e15466

View file

@ -600,7 +600,8 @@ class BaseSiteAdapter(Configurable):
if t.name not in ('p') and t.string != None and len(t.string.strip()) == 0 :
t.extract()
except AttributeError, ae:
logger.error("Error parsing HTML, probably poor input HTML. %s"%ae)
if "%s"%ae != "'NoneType' object has no attribute 'next_element'":
logger.error("Error parsing HTML, probably poor input HTML. %s"%ae)
retval = unicode(soup)