From bff644d876bcd157114952339346f5d476155012 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 23 Dec 2025 17:54:32 -0800 Subject: stub AI summarization if API call fails --- summarizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/summarizer.py b/summarizer.py index 0c30347..689626d 100644 --- a/summarizer.py +++ b/summarizer.py @@ -90,5 +90,5 @@ def generate_headline_and_content_from_images(img_urls: list[str], game: str, me except openai.OpenAIError as e: print(f"[ERROR] Function call to OpenAI for summarization failed ERROR -> {e} ") database.close() - return None, None + return f"NEW {game} INFORMATION / 新しい{game}情報", f"NEW {game} INFORMATION AVAILABLE / 新しい{game}情報が利用可能です" return headline, content -- cgit v1.2.3