From 22673ebd90b1654f7c396485fa3bd4294967eed6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 31 Oct 2021 14:06:02 +0530 Subject: [PATCH] ... --- kitty/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/utils.py b/kitty/utils.py index ba9ca853a..a05970566 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -455,6 +455,8 @@ class TTYIO: close_tty(self.tty_fd, self.original_termios) def wait_till_read_available(self) -> bool: + if self.read_with_timeout: + raise ValueError('Cannot wait when TTY is set to read with timeout') import select rd = select.select([self.tty_fd], [], [])[0] return bool(rd)