From 6d0444de51434d79053a7454befab36bb9de8553 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Wed, 31 May 2023 19:30:36 +0300 Subject: [PATCH] cast content to str in remove_html_tags --- app/converter/wordpress_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/converter/wordpress_markdown.py b/app/converter/wordpress_markdown.py index 4b8696a..1a58bd9 100644 --- a/app/converter/wordpress_markdown.py +++ b/app/converter/wordpress_markdown.py @@ -63,7 +63,7 @@ class WordpressMarkdownConverter: self._fix_html_tag(content, fixed_lines) else: # Add the content. - fixed_lines.append(handle_regex_heuristics(content)) + fixed_lines.append(handle_regex_heuristics(str(content))) return fixed_lines def _fix_html_tag(self, content, fixed_lines):