From d86bedead99151f57f04c9f47f409ddf52129208 Mon Sep 17 00:00:00 2001 From: Beast Date: Mon, 15 Jun 2026 12:50:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20A=E8=82=A1=E6=8E=A5=E5=8F=A3=20timeout?= =?UTF-8?q?=2010s=E2=86=9215s=20=E5=87=8F=E5=B0=91=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/fetch_market.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/fetch_market.py b/scripts/fetch_market.py index 40d9a51..c66940c 100644 --- a/scripts/fetch_market.py +++ b/scripts/fetch_market.py @@ -38,9 +38,9 @@ def fetch_crypto(): def fetch_cn_indices(): - """Fetch A-share indices via Eastmoney API (no key).""" + """Fetch A-share indices via Eastmoney API (no key). Retry once on timeout.""" try: - resp = requests.get(EM_URL, timeout=10) + resp = requests.get(EM_URL, timeout=15) data = resp.json() items = [] for diff in data.get("data", {}).get("diff", []):