summaryrefslogtreecommitdiff
path: root/Lib/asyncio/windows_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-02-18 18:02:19 -0500
committerYury Selivanov <yselivanov@sprymix.com>2014-02-18 18:02:19 -0500
commit0f79cd809ecddef101c8d17ada4587b55471fc1f (patch)
tree8ca4c4a03cdb004b6ddcd19ce182e661042b47fb /Lib/asyncio/windows_events.py
parenteaff73f97c1597105add70e3305798a1a7299751 (diff)
downloadcpython-0f79cd809ecddef101c8d17ada4587b55471fc1f.tar.gz
asyncio: New error handling API. Issue #20681.
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r--Lib/asyncio/windows_events.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
index 0a2d981003..c667a1c319 100644
--- a/Lib/asyncio/windows_events.py
+++ b/Lib/asyncio/windows_events.py
@@ -156,9 +156,13 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
if pipe is None:
return
f = self._proactor.accept_pipe(pipe)
- except OSError:
+ except OSError as exc:
if pipe and pipe.fileno() != -1:
- logger.exception('Pipe accept failed')
+ self.call_exception_handler({
+ 'message': 'Pipe accept failed',
+ 'exception': exc,
+ 'pipe': pipe,
+ })
pipe.close()
except futures.CancelledError:
if pipe: