diff --git a/litellm/llms/custom_httpx/aiohttp_transport.py b/litellm/llms/custom_httpx/aiohttp_transport.py index 132191c946c..eb5dc3f9ad9 100644 --- a/litellm/llms/custom_httpx/aiohttp_transport.py +++ b/litellm/llms/custom_httpx/aiohttp_transport.py @@ -59,7 +59,7 @@ except ImportError: def map_aiohttp_exceptions() -> typing.Iterator[None]: try: yield - except Exception as exc: + except (Exception, asyncio.CancelledError) as exc: mapped_exc = None for from_exc, to_exc in AIOHTTP_EXC_MAP.items():