summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-21 23:17:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-21 23:17:41 (GMT)
commit0c2e4088334906bd883caabe3573bba3f82d0819 (patch)
tree69710444779e4d6d97d57a113f70f6b23b7bb5d8
parentd0a28dee78d099fcadc71147cba4affb6efa0c97 (diff)
downloadcpython-0c2e4088334906bd883caabe3573bba3f82d0819.zip
cpython-0c2e4088334906bd883caabe3573bba3f82d0819.tar.gz
cpython-0c2e4088334906bd883caabe3573bba3f82d0819.tar.bz2
asyncio: BaseEventLoop._create_connection_transport() catchs any exception, not
only Exception
-rw-r--r--Lib/asyncio/base_events.py2
1 files changed, 1 insertions, 1 deletions
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