From 775ad9700752540bbbdea03ac35b613b0addde4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Thu, 15 May 2025 03:35:22 +0200 Subject: [PATCH] Fix type handling for article content in generate_atom_feed function --- scrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrape.py b/scrape.py index db8a723..93bbd14 100644 --- a/scrape.py +++ b/scrape.py @@ -392,7 +392,7 @@ def generate_atom_feed(articles: list[dict[Any, Any]], file_name: str) -> str: ) article_title: str = article.get("articleTitle", "No Title") - article_content: str = article.get("articleContent", article_title) + article_content: str = article.get("articleContent", str(article_title)) if not article_content: article_content = article_title