From ce62943e493199537750d46c4443c960a0b61e30 Mon Sep 17 00:00:00 2001 From: Qetesh <4559341+Qetesh@users.noreply.github.com> Date: Sun, 15 Dec 2024 05:09:01 +0800 Subject: [PATCH] fix: ai_news.json FileNotFoundError --- myapp/ai_news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myapp/ai_news.py b/myapp/ai_news.py index f857d02..1812038 100644 --- a/myapp/ai_news.py +++ b/myapp/ai_news.py @@ -31,7 +31,7 @@ def miniflux_ai_news(): with open('ai_news.json', 'r') as file: ai_news = json.load(file) except FileNotFoundError: - pass + ai_news = '' except Exception as e: logger.error(e)