From d0483be6c0d2d328ddd1b3cb8bc52e6cd91abbfc Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Thu, 29 Jul 2021 12:00:33 +0100 Subject: [PATCH] fix shutdown exception - fixes #1198 --- tqdm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tqdm/utils.py b/tqdm/utils.py index 64665990..a7352a04 100644 --- a/tqdm/utils.py +++ b/tqdm/utils.py @@ -277,7 +277,7 @@ def _screen_shape_linux(fp): # pragma: no cover from fcntl import ioctl from termios import TIOCGWINSZ except ImportError: - return None + return None, None else: try: rows, cols = array('h', ioctl(fp, TIOCGWINSZ, '\0' * 8))[:2]