X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=parse_html%2Fbkmk_parse_html.py;h=7764303a4e754715a86a3a12e5d0b48d1d5acb8c;hb=e69ee847224026d24684847d19d178f5b0db9309;hp=be5daab26e85ec47620838f506b49085c392e78f;hpb=03d2e88efc7b2046a404679a36a8a65d6faae98c;p=bookmarks_db.git diff --git a/parse_html/bkmk_parse_html.py b/parse_html/bkmk_parse_html.py index be5daab..7764303 100644 --- a/parse_html/bkmk_parse_html.py +++ b/parse_html/bkmk_parse_html.py @@ -101,7 +101,7 @@ BKMK_DEBUG_HTML_PARSERS = os.environ.get("BKMK_DEBUG_HTML_PARSERS") def parse_html(html_text, charset=None, log=None): - if not parsers: + if not html_text or not parsers: return None if charset: