From 0c2e4088334906bd883caabe3573bba3f82d0819 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 22 Jan 2015 00:17:41 +0100 Subject: asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not only Exception --- Lib/asyncio/base_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 739296b..1ceeb2d 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -636,7 +636,7 @@ class BaseEventLoop(events.AbstractEventLoop): try: yield from waiter - except Exception: + except: transport.close() raise -- cgit v0.12