Skip to content

Commit

Permalink
Fix output.tty.IS_INTERACTIVE when os.isatty() throws OSError
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Mar 7, 2024
1 parent e332099 commit 2d53994
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osc/output/tty.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import sys


IS_INTERACTIVE = os.isatty(sys.stdout.fileno())
try:
IS_INTERACTIVE = os.isatty(sys.stdout.fileno())
except OSError:
IS_INTERACTIVE = False


ESCAPE_CODES = {
Expand Down

0 comments on commit 2d53994

Please sign in to comment.