1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 10:16:14 +01:00

Fix output.tty.IS_INTERACTIVE when os.isatty() throws OSError

This commit is contained in:
Daniel Mach 2024-03-07 08:37:13 +01:00
parent e332099544
commit 2d5399442d

View File

@ -2,7 +2,10 @@ import os
import sys
IS_INTERACTIVE = os.isatty(sys.stdout.fileno())
try:
IS_INTERACTIVE = os.isatty(sys.stdout.fileno())
except OSError:
IS_INTERACTIVE = False
ESCAPE_CODES = {