Skip to content

Commit

Permalink
handle if terminal is unavail
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Jul 18, 2024
1 parent 5623018 commit 12a5888
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slither/utils/myprettytable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12a5888

Please sign in to comment.