diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-26 23:08:37 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-26 23:08:37 +0100 |
commit | 790d924a6079da48849ab6e4b8ca025a5fd31143 (patch) | |
tree | 73c822ae3beb8264769bacf0df91652cdac3908e | |
parent | 275b64c17c8ede65077651bfb5c4a16518f738e4 (diff) | |
download | trollius-790d924a6079da48849ab6e4b8ca025a5fd31143.tar.gz |
Fix IocpProactor.connect_pipe() on Python 2
-rw-r--r-- | trollius/windows_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trollius/windows_events.py b/trollius/windows_events.py index 602f93a..61967de 100644 --- a/trollius/windows_events.py +++ b/trollius/windows_events.py @@ -521,9 +521,9 @@ class IocpProactor(object): # Call CreateFile() in a loop until it doesn't fail with # ERROR_PIPE_BUSY try: - handle = _overlapped.ConnectPipe(address) + handle = wrap_error(_overlapped.ConnectPipe, address) break - except OSError as exc: + except WindowsError as exc: if exc.winerror != _overlapped.ERROR_PIPE_BUSY: raise |