Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c2e408

Browse files
committed
asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not
only Exception
1 parent d0a28de commit 0c2e408

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
@@ -636,7 +636,7 @@ def _create_connection_transport(self, sock, protocol_factory, ssl,
636636

637637
try:
638638
yield from waiter
639-
except Exception:
639+
except:
640640
transport.close()
641641
raise
642642

0 commit comments

Comments
 (0)