[Python-checkins] cpython (3.4): asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not

victor.stinner python-checkins at python.org
Thu Jan 22 00:19:07 CET 2015


https://hg.python.org/cpython/rev/0be88d94b0c7
changeset:   94233:0be88d94b0c7
branch:      3.4
parent:      94231:fb8a093db8b1
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Jan 22 00:17:41 2015 +0100
summary:
  asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not
only Exception

files:
  Lib/asyncio/base_events.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -636,7 +636,7 @@
 
         try:
             yield from waiter
-        except Exception:
+        except:
             transport.close()
             raise
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list