From: Victor Stinner Date: Wed, 21 Jan 2015 23:17:41 +0000 (+0100) Subject: asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not X-Git-Tag: v3.4.3rc1~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c2e4088334906bd883caabe3573bba3f82d0819;p=python asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not only Exception --- diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 739296b761..1ceeb2d295 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