Clean up bare except where only IOError makes sense.
This commit is contained in:
parent
553f68114f
commit
652553192e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue