From 0e17e15466bd1afb4f33c530b60718bfa986c448 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 8 Sep 2015 09:31:06 -0500 Subject: [PATCH] Stop logging a common html parsing error that we're ignoring anyway. --- fanficfare/adapters/base_adapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fanficfare/adapters/base_adapter.py b/fanficfare/adapters/base_adapter.py index 26c858f4..096f4508 100644 --- a/fanficfare/adapters/base_adapter.py +++ b/fanficfare/adapters/base_adapter.py @@ -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)