diff options
-rw-r--r-- | Lib/pty.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pty.py b/Lib/pty.py index 0c203dd612..fb7edc0fea 100644 --- a/Lib/pty.py +++ b/Lib/pty.py @@ -147,5 +147,5 @@ def spawn(argv, master_read=_read, stdin_read=_read): tty.setraw(STDIN_FILENO) try: _copy(master_fd, master_read, stdin_read) - except: + except IOError: tty.tcsetattr(STDIN_FILENO, tty.TCSAFLUSH, mode) |