diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-18 18:02:19 -0500 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-02-18 18:02:19 -0500 |
commit | 569efa2e4bf985f27a9f85393e29d3ad8ac73344 (patch) | |
tree | 892c07e1a7b02669d13331bd991f3a72078ba03d /Lib/asyncio/windows_events.py | |
parent | 6acc5e1330239cd721205b310dfddec1eb6425c1 (diff) | |
download | cpython-git-569efa2e4bf985f27a9f85393e29d3ad8ac73344.tar.gz |
asyncio: New error handling API. Issue #20681.
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r-- | Lib/asyncio/windows_events.py | 8 |
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: |