From 7fb2aea445316a45e85aef9547a6ad462668b72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B8=AD=E9=B8=AD=E3=80=8C=E3=82=AB=E3=83=A2=E3=80=8D?= <89643991+DuckDuckStudio@users.noreply.github.com> Date: Sat, 10 Oct 2026 11:40:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=B3=E8=BF=87=E5=93=8D=E5=BA=94=204?= =?UTF-8?q?51=20=E7=9A=84=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 见 #5,这些仓库可能是被 DMCA 或者其他方式封禁。 在统计时,我们跳过这些仓库而不是直接中止整个统计。 Fixes #5 --- src/main.mts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.mts b/src/main.mts index 07dc39c..b29d647 100644 --- a/src/main.mts +++ b/src/main.mts @@ -84,6 +84,8 @@ async function fetchLanguages(username: string, token: string, maxRepos: number case 403: case 429: throw getRateLimitError(languageResponse); + case 451: + continue; default: if (!languageResponse.ok) { throw new Error(`获取仓库语言信息失败(HTTP ${languageResponse.status})`);