Skip to content

Commit 43177d5

Browse files
committed
review fix
1 parent 4d975b4 commit 43177d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ async def shutdown_asyncgens(self):
590590
return_exceptions=True)
591591

592592
for result, agen in zip(results, closing_agens):
593-
if isinstance(result, (Exception, exceptions.CancelledError)):
593+
if isinstance(result, BaseException):
594594
self.call_exception_handler({
595595
'message': f'an error occurred during closing of '
596596
f'asynchronous generator {agen!r}',

0 commit comments

Comments
 (0)