diff --git a/litellm/llms/custom_httpx/http_handler.py b/litellm/llms/custom_httpx/http_handler.py index 02d494f9f..b123514dd 100644 --- a/litellm/llms/custom_httpx/http_handler.py +++ b/litellm/llms/custom_httpx/http_handler.py @@ -110,7 +110,7 @@ class AsyncHTTPHandler: ) finally: await new_client.aclose() - except httpx.ConnectTimeout: + except httpx.TimeoutException: if data is None: data = {} raise litellm.Timeout( @@ -220,7 +220,7 @@ class HTTPHandler: ) response = self.client.send(req, stream=stream) return response - except httpx.ConnectTimeout: + except httpx.TimeoutException: if data is None: data = {} raise litellm.Timeout(