mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(aiohttp): catch asyncio.CancelledError in map_aiohttp_exceptions
This commit is contained in:
parent
c89496f378
commit
0cc7650e65
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue