mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Stop logging a common html parsing error that we're ignoring anyway.
This commit is contained in:
parent
e30bd1adcc
commit
0e17e15466
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue