Skip to content

Commit

Permalink
Catch ClientConnectorError in _is_url_available
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Aug 15, 2024
1 parent fd56b6c commit b16e7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler/core/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit b16e7ba

Please sign in to comment.