From 92f5d0b12ed82b7ac51acfa074de7bfad14c1084 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 13 Aug 2010 15:46:30 +0000 Subject: [PATCH] Fixed a bug. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@284 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/parse_html_lxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robots/parse_html_lxml.py b/Robots/parse_html_lxml.py index 638af4e..8f658e1 100644 --- a/Robots/parse_html_lxml.py +++ b/Robots/parse_html_lxml.py @@ -11,7 +11,7 @@ from parse_html_util import HTMLParser def parse_html(filename, charset=None, log=None): html_tree = parse(filename) - if t.getroot() is None: + if html_tree.getroot() is None: return None title = html_tree.findtext('head/title') -- 2.39.5