From 622fead3fef2d870a85d570c5416166076b8c8c4 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Wed, 18 Apr 2012 13:14:57 -0400 Subject: Print a warning on HTMLParseErrors to let people know they should install an external parser. --- doc/source/index.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/source') diff --git a/doc/source/index.rst b/doc/source/index.rst index 5aab90e..734851d 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -2548,7 +2548,8 @@ Other parser problems parsers`_ for why this matters, and fix the problem by mentioning a specific parser library in the ``BeautifulSoup`` constructor. -* ``HTMLParser.HTMLParseError: malformed start tag`` - Caused by +* ``HTMLParser.HTMLParseError: malformed start tag`` or + ``HTMLParser.HTMLParseError: bad end tag`` - Caused by giving Python's built-in HTML parser a document it can't handle. Any other ``HTMLParseError`` is probably the same problem. Solution: :ref:`Install lxml or html5lib. ` -- cgit v1.2.3