From: Oleg Broytman Date: Tue, 4 Mar 2008 09:37:45 +0000 (+0000) Subject: Do not log TypeError. X-Git-Tag: v4.5.3~183 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d4d9255c90fb65adf5a8d8d03b55d558b77fe756;p=bookmarks_db.git Do not log TypeError. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@193 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index 3c52ce4..162e7a3 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -54,7 +54,6 @@ def parse_html(filename, charset=None, log=None): try: root = BadDeclParser(infile, fromEncoding=charset) except TypeError: - if log: log("TypeError") return None finally: infile.close()