Skip to content

Commit 76b2ece

Browse files
committed
Catch OSError
1 parent 1a9c743 commit 76b2ece

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

curtsies/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _wait_for_read_ready_or_timeout(self, timeout):
182182
else:
183183
continue
184184

185-
except select.error:
185+
except OSError:
186186
if self.sigints:
187187
return False, self.sigints.pop()
188188
if remaining_timeout is not None:

curtsies/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def retrying_read():
342342
(resp,),
343343
)
344344
return c
345-
except IOError:
345+
except OSError:
346346
# apparently sometimes this happens: the only documented
347347
# case is Terminal on a Ubuntu 17.10 VM on osx 10.13.
348348
# see issue #732

0 commit comments

Comments
 (0)