Specify the exception thrown

This commit is contained in:
Jonathan van der Steege 2022-06-18 22:03:04 +02:00
parent 272d586e06
commit ffa32297e8

View file

@ -113,7 +113,7 @@ class Entry:
if columns == "auto":
try:
columns = os.get_terminal_size()[0]
except: # noqa: E722
except OSError:
logging.debug(
"Can't determine terminal size automatically 'linewrap': '%s'",
self.journal.config["linewrap"],