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": if columns == "auto":
try: try:
columns = os.get_terminal_size()[0] columns = os.get_terminal_size()[0]
except: # noqa: E722 except OSError:
logging.debug( logging.debug(
"Can't determine terminal size automatically 'linewrap': '%s'", "Can't determine terminal size automatically 'linewrap': '%s'",
self.journal.config["linewrap"], self.journal.config["linewrap"],