diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/__init__.py b/src/lib/Bcfg2/Server/Lint/__init__.py index 886521b2d..f4a9b74c2 100644 --- a/src/lib/Bcfg2/Server/Lint/__init__.py +++ b/src/lib/Bcfg2/Server/Lint/__init__.py @@ -105,10 +105,10 @@ class ErrorHandler (object): self.logger = logging.getLogger('bcfg2-lint') termsize = get_termsize() - if termsize is not None: + if termsize is not None and termsize[0] > 0: twrap = textwrap.TextWrapper(initial_indent=" ", - subsequent_indent=" ", - width=termsize[0]) + subsequent_indent=" ", + width=termsize[0]) self._wrapper = twrap.wrap else: self._wrapper = lambda s: [s] |