From 193a0350b2850e4604d20bda99f04683368dbdab Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 29 Dec 2025 15:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=B0=E9=97=BB=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/func_news.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/func_news.py b/base/func_news.py index a7fb5ba..01f1cb6 100644 --- a/base/func_news.py +++ b/base/func_news.py @@ -113,9 +113,8 @@ class News(object): """ API_URL = "http://192.168.2.32:4399/v2/60s" - TIMEOUT = 5 # 秒 try: - resp = requests.get(API_URL, timeout=TIMEOUT) + resp = requests.get(API_URL) resp.raise_for_status() # HTTP 非 200 会抛异常 data = resp.json()