X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fparse_html_lxml.py;h=8f658e1a026d9d16789f69bf43c5cf8a8d45fd83;hb=c05c3463a8d992c798443d7a6fe8c01de1b776fa;hp=638af4e972cab376c1fa2f142494a8eea74b9cce;hpb=1a001aafb9fefdbc003ee5ce49ca19d4f4f7e3ec;p=bookmarks_db.git 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')