mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-05 07:03:38 +02:00
Fix output.tty.IS_INTERACTIVE when os.isatty() throws OSError
This commit is contained in:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user