From b056052df1800ea842cbe93d54789d913c305c91 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Fri, 2 Jan 2026 15:11:01 -0800 Subject: fix: assume no ai summary if key does not exist --- rasis.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rasis.py b/rasis.py index 2275cd1..a88e936 100644 --- a/rasis.py +++ b/rasis.py @@ -95,8 +95,7 @@ def generate_post_content(post_data: dict) -> str: return None content = f"📰 {game} - {post_data['date']}\n\n" - - if post_data["is_ai_summary"]: + if "is_ai_summary" in post_data and post_data["is_ai_summary"]: content += "The information below is written by AI / 上記の情報はAIによって生成されました。\n\n" if post_data["type"] is not None: -- cgit v1.2.3