Fix type handling for article content in generate_atom_feed function

This commit is contained in:
2025-05-15 03:35:22 +02:00
parent 23cc6ca402
commit 775ad97007

View File

@ -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