fix hanging if no available mirrors
This commit is contained in:
doms9 2025-12-12 10:46:56 -05:00
parent 3a1d2742f1
commit 00000d9233
8 changed files with 24 additions and 16 deletions

View file

@ -53,7 +53,7 @@ class Network:
async def check_status(self, url: str) -> bool:
try:
r = await self.client.get(url)
r = await self.client.get(url, timeout=5)
r.raise_for_status()
return r.status_code == 200
except (httpx.HTTPError, httpx.TimeoutException) as e: