diff --git a/netdata/__init__.py b/netdata/__init__.py index a8c9072..7c196f6 100644 --- a/netdata/__init__.py +++ b/netdata/__init__.py @@ -44,7 +44,9 @@ async def get_data(self, url) -> Dict: try: async with httpx.AsyncClient() as client: response = await client.get(str(url), timeout = self.timeout) - except httpx.ConnectError: + except httpx.TimeoutException: + raise + except httpx.TransportError: raise exceptions.NetdataConnectionError( f"Connection to {self.scheme}://{self.host}:{self.port} failed" )