]> git.phdru.name Git - bookmarks_db.git/commitdiff
Log the module's name of the failed parse_html.
authorOleg Broytman <phd@phdru.name>
Tue, 18 Dec 2007 06:10:34 +0000 (06:10 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 18 Dec 2007 06:10:34 +0000 (06:10 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@114 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/parse_html.py

index fc9514d005e5c02dce4fe4717c7e1732060d7cd6..96022b07335f2ddc487f1eaea87d29f54acd5345 100755 (executable)
@@ -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: