chore: A股接口 timeout 10s→15s 减少超时失败

This commit is contained in:
Beast
2026-06-15 12:50:58 +08:00
parent e3a18a20d3
commit d86bedead9

View File

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