diff options
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:  | 
