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:
parent
e332099544
commit
2d5399442d
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user