From b16e7baec3ebae11a107e37780cb6edff8775595 Mon Sep 17 00:00:00 2001 From: Egbert Bouman Date: Thu, 15 Aug 2024 15:02:18 +0200 Subject: [PATCH] Catch ClientConnectorError in _is_url_available --- src/tribler/core/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tribler/core/session.py b/src/tribler/core/session.py index 8b94cba5f0..c0cbd8d971 100644 --- a/src/tribler/core/session.py +++ b/src/tribler/core/session.py @@ -81,7 +81,7 @@ async def _is_url_available(url: str, timeout: int=1) -> bool: try: async with session.get(url, timeout=timeout): return True - except asyncio.TimeoutError: + except (asyncio.TimeoutError, aiohttp.client_exceptions.ClientConnectorError): return False