From 12a5888bb8c228f2eec79282979346b85d070af1 Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Thu, 18 Jul 2024 09:38:11 -0500 Subject: [PATCH] handle if terminal is unavail --- slither/utils/myprettytable.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slither/utils/myprettytable.py b/slither/utils/myprettytable.py index a5c65d68d..6106af8f4 100644 --- a/slither/utils/myprettytable.py +++ b/slither/utils/myprettytable.py @@ -25,6 +25,7 @@ def __init__( else: self._options["set_alignment"] = [] + self.max_width = None if max_width == "max": # We use (0,0) as a fallback to detect if we are not attached to a terminal # In this case, we fall back to the default behavior (i.e. printing as much as possible)