From 310ceed1416dd42c3fcfebc7b5ace66813eaeafb Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 2 Nov 2026 16:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=20msg=20=E4=B8=BA=E7=A9=BA=E4=BB=8E?= =?UTF-8?q?=E8=87=B4=E5=91=BD=E9=99=8D=E4=B8=BA=E8=B7=B3=E8=BF=87=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=80=E6=A0=A1=E5=BC=82=E5=B8=B8=E4=B8=AD?= =?UTF-8?q?=E6=AD=A2=E6=95=B4=E8=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一轮 362 校只跑到 260 就停:西北工业大学(10699) 的 yjfxs.do 返回 HTTP200 但 msg='' 落进「未知 msg」分支被判 fatal,直接 return 1 中止全局。 这不是 HTTP 403/429 那类必须中止的信号,改成 refused 跳过分片继续, 原因原文留档。该分片未标已完成,续跑可补。 --- 数据库/fetch_chsi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/数据库/fetch_chsi.py b/数据库/fetch_chsi.py index ea47d39b1..90134393c 100644 --- a/数据库/fetch_chsi.py +++ b/数据库/fetch_chsi.py @@ -157,7 +157,10 @@ class Fetcher: return False, None, {"refused": True, "fatal": False, "reason": "限流重试 %d 次仍拒:%s" % (self.max_retry, m), "http": 200} - return False, None, {"refused": True, "fatal": True, + # msg 是字符串但不含已知拒绝措辞(实测有 msg='' 的校): + # 这只说明该分片拿不到可解析正文,跟 HTTP 403/429 那类必须中止全局的 + # 信号不是一回事,标 refused 跳过继续跑,原因原文留档便于回查。 + return False, None, {"refused": True, "fatal": False, "reason": "未知 msg=%r" % m, "http": 200} return False, None, {"refused": True, "fatal": False, "reason": last or "重试耗尽"}