Skip to content

Commit

Permalink
Listed the particular exceptions to pass on
Browse files Browse the repository at this point in the history
  • Loading branch information
redshodan committed Sep 25, 2017
1 parent d4fcf9f commit 9d8e8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eyed3/utils/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def getTtySize(fd=sys.stdout, check_tty=True):
try:
data = fcntl.ioctl(fd, termios.TIOCGWINSZ, '\0' * 4)
hw = struct.unpack("hh", data)
except:
except (OSError, IOError):
pass
if not hw:
try:
Expand Down

0 comments on commit 9d8e8ef

Please sign in to comment.