X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fparse_html_etreetidy.py;h=7149c2286332a55c3655bddda4632e26865279d7;hb=a788e94901728a5ea127b2c09e3a13ff6a5447b9;hp=5f8bd862bc5bd9e85197cf2950937ffb86b046e0;hpb=f8c96fe94544f486e9e76640d16fc355daa4db70;p=bookmarks_db.git diff --git a/Robots/parse_html_etreetidy.py b/Robots/parse_html_etreetidy.py index 5f8bd86..7149c22 100644 --- a/Robots/parse_html_etreetidy.py +++ b/Robots/parse_html_etreetidy.py @@ -22,7 +22,9 @@ def parse_html(filename, charset=None, log=None): title = html_tree.findtext('head/title') if title is None: - return None + title = html_tree.findtext('title') + if title is None: + return None meta = html_tree.findall('head/meta') for m in meta: