From 4961042bde2d796a57300021f984de459b6a3064 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 7 Apr 2020 09:57:32 -0400 Subject: [PATCH] Fix error on tags without a href attribute --- src/backend/html_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index f06c7c51..e5a72d73 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -467,7 +467,7 @@ class HTMLProcessor: def _matrix_to_links_add_classes(self, el: HtmlElement) -> HtmlElement: - href = unquote(el.attrib.get("href")) + href = unquote(el.attrib.get("href", "")) if not href or not el.text: return el