Skip to content

Commit 370c46b

Browse files
committed
gh-137549: Modify object to BaseExceptionGroup
1 parent 8665769 commit 370c46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/timeouts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def __aexit__(
114114
raise TimeoutError from exc_val
115115
elif exc_val is not None:
116116
self._insert_timeout_error(exc_val)
117-
if isinstance(exc_val, ExceptionGroup):
117+
if isinstance(exc_val, BaseExceptionGroup):
118118
for exc in exc_val.exceptions:
119119
self._insert_timeout_error(exc)
120120
elif self._state is _State.ENTERED:

0 commit comments

Comments
 (0)