mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-28 03:41:41 +00:00
...
This commit is contained in:
parent
67a9ee680b
commit
64340943bd
1 changed files with 5 additions and 2 deletions
|
|
@ -39,8 +39,11 @@ def setup_debug_print() -> bool:
|
|||
fd = int(os.environ['KITTY_STDIO_FORWARDED'])
|
||||
except Exception:
|
||||
return False
|
||||
sys.stdout = open(fd, 'w', closefd=False)
|
||||
return True
|
||||
try:
|
||||
sys.stdout = open(fd, 'w', closefd=False)
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue