diff --git a/invoke/terminals.py b/invoke/terminals.py index 2694712f..c1669a77 100644 --- a/invoke/terminals.py +++ b/invoke/terminals.py @@ -107,7 +107,7 @@ def _pty_size() -> Tuple[Optional[int], Optional[int]]: # * termios not having a TIOCGWINSZ attribute (happens sometimes...) # * other situations where ioctl doesn't explode but the result isn't # something unpack can deal with - except (struct.error, TypeError, IOError, AttributeError): + except (struct.error, TypeError, IOError, AttributeError, SystemError): pass return size