Avoid test runner crash when we have no tty
Change-Id: I6dac94a98b9125d3371c19fa14a0de9b4e766820 Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
@@ -101,7 +101,6 @@ class _AnsiColorizer(object):
|
||||
curses.setupterm()
|
||||
return curses.tigetnum("colors") > 2
|
||||
except Exception:
|
||||
raise
|
||||
# guess false in case of error
|
||||
return False
|
||||
supported = classmethod(supported)
|
||||
|
||||
Reference in New Issue
Block a user