From c3233735107b18f4f74c9d6bbe185199b445e33a Mon Sep 17 00:00:00 2001 From: MingxuanGame Date: Sat, 10 Jan 2026 19:53:03 +0800 Subject: [PATCH] fix(newrelic): check whether `newrelic.ini` is a file --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 044d29b..344de1c 100644 --- a/main.py +++ b/main.py @@ -158,7 +158,7 @@ v1 API 采用 API Key 鉴权,将 API Key 放入 Query `k` 中。 # 检查 New Relic 配置文件是否存在,如果存在则初始化 New Relic newrelic_config_path = Path("newrelic.ini") -if newrelic_config_path.exists(): +if newrelic_config_path.is_file(): try: import newrelic.agent