mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
⚡️ 新增部分重試
This commit is contained in:
parent
8c869e62a4
commit
7c8e5e17ae
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user