Skip to content

Commit

Permalink
fix shutdown exception
Browse files Browse the repository at this point in the history
- fixes tqdm#1198
  • Loading branch information
casperdcl committed Jul 30, 2021
1 parent bad8f66 commit d0483be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tqdm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d0483be

Please sign in to comment.