fix shutdown exception

- fixes #1198
This commit is contained in:
Casper da Costa-Luis 2021-07-29 12:00:33 +01:00
parent bad8f66bde
commit d0483be6c0
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ def _screen_shape_linux(fp): # pragma: no cover
from fcntl import ioctl from fcntl import ioctl
from termios import TIOCGWINSZ from termios import TIOCGWINSZ
except ImportError: except ImportError:
return None return None, None
else: else:
try: try:
rows, cols = array('h', ioctl(fp, TIOCGWINSZ, '\0' * 8))[:2] rows, cols = array('h', ioctl(fp, TIOCGWINSZ, '\0' * 8))[:2]