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()