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", []):