diff --git a/src/build/__main__.py b/src/build/__main__.py index ebbe6b83..7a3737d4 100644 --- a/src/build/__main__.py +++ b/src/build/__main__.py @@ -69,6 +69,8 @@ def _showwarning( _max_terminal_width = shutil.get_terminal_size().columns - 2 +if _max_terminal_width <= 0: + _max_terminal_width = 80 _fill = partial(textwrap.fill, subsequent_indent=' ', width=_max_terminal_width)