]> git.phdru.name Git - bookmarks_db.git/blobdiff - parse_html/bkmk_parse_html.py
Fix(parse_html): Do not parse empty strings
[bookmarks_db.git] / parse_html / bkmk_parse_html.py
index be5daab26e85ec47620838f506b49085c392e78f..7764303a4e754715a86a3a12e5d0b48d1d5acb8c 100644 (file)
@@ -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: