From: Oleg Broytman Date: Tue, 18 Dec 2007 06:10:34 +0000 (+0000) Subject: Log the module's name of the failed parse_html. X-Git-Tag: v4.5.3~262 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=dc08282f6ed82b219e8b27ae761dd4d45a0f2e50;p=bookmarks_db.git Log the module's name of the failed parse_html. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@114 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/parse_html.py b/Robots/parse_html.py index fc9514d..96022b0 100755 --- a/Robots/parse_html.py +++ b/Robots/parse_html.py @@ -48,7 +48,7 @@ def parse_html(filename, charset=None, log=None): if parser: break else: - if log: log("Parser %s failed, trying next one." % p) + if log: log("Parser %s.%s failed, trying next one." % (p.__module__, p.__name__)) title = parser.title if not parser.charset: