From 7c8e5e17aece8a9f83660bb2e4897bf3cb039c39 Mon Sep 17 00:00:00 2001 From: tdc Date: Mon, 15 Apr 2024 16:35:11 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=83=A8=E5=88=86=E9=87=8D=E8=A9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/nrdlist.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AutoBuild/nrdlist.py b/AutoBuild/nrdlist.py index 4b6f49c..00ebfe6 100644 --- a/AutoBuild/nrdlist.py +++ b/AutoBuild/nrdlist.py @@ -112,7 +112,14 @@ class Phase3: ) async def run(self): - await self.fetch() + for _ in range(5): + try: + await self.fetch() + except httpx.ReadTimeout: + logger.error("Phase3: Timeout, retrying") + continue + finally: + break class Phase4: