AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
sentry-io opened this issue · comments
sentry-io commented
Sentry Issue: GPODDERNET-FEEDS-95
KeyError: 'title'
File "__init__.py", line 472, in handle_tag
title = a["title"] if a["title"] else ""
SystemExit: 1
(7 additional frame(s) were not displayed)
...
File "__init__.py", line 181, in handle_endtag
self.handle_tag(tag, None, start=False)
File "__init__.py", line 475, in handle_tag
link_url(self, a["href"], "")
File "__init__.py", line 444, in link_url
self.o("]({url}{title})".format(url=escape_md(url), title=title))
File "__init__.py", line 675, in o
def o(self, data, puredata=False, force=False):
File "gunicorn/workers/base.py", line 196, in handle_abort
sys.exit(1)
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
(9 additional frame(s) were not displayed)
...
File "feedservice/parse/feed.py", line 155, in get_episodes
return [p.get_episode() for p in parser]
File "feedservice/parse/feed.py", line 155, in <listcomp>
return [p.get_episode() for p in parser]
File "feedservice/parse/feed.py", line 169, in get_episode
episode.description = self.get_description()
File "feedservice/parse/models.py", line 29, in __setattr__
value = self._text_processor.process(value)
File "feedservice/parse/text.py", line 58, in process
except (TypeError, html.parser.HTMLParseError):