X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=text_utils.py;h=39b8fe3e3db64266aeaeaad4d92503be393017e9;hb=e46158e49121b8a955bb07b73f5bcf9928b79c90;hp=890bc630f870c23ad3fabb2b31248ac359c98b26;hpb=772038b8d852446b77c9ee857885874f2552e9a6;p=python_utils.git diff --git a/text_utils.py b/text_utils.py index 890bc63..39b8fe3 100644 --- a/text_utils.py +++ b/text_utils.py @@ -50,8 +50,7 @@ def get_console_rows_columns() -> RowsColumns: "stty size", timeout_seconds=1.0, ).split() - except Exception as e: - logger.exception(e) + except Exception: rows = None cols = None @@ -62,8 +61,7 @@ def get_console_rows_columns() -> RowsColumns: "tput rows", timeout_seconds=1.0, ) - except Exception as e: - logger.exception(e) + except Exception: rows = None if cols is None: @@ -73,8 +71,7 @@ def get_console_rows_columns() -> RowsColumns: "tput cols", timeout_seconds=1.0, ) - except Exception as e: - logger.exception(e) + except Exception: cols = None if not rows or not cols: