From dc08282f6ed82b219e8b27ae761dd4d45a0f2e50 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 18 Dec 2007 06:10:34 +0000 Subject: [PATCH] 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 --- Robots/parse_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5