From 1aaaa3f1e9348f70f3953f4690a930896026d39c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Sep 2023 07:53:13 +0530 Subject: [PATCH] Fix incorrect exception when tic fails --- shell-integration/ssh/bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.py b/shell-integration/ssh/bootstrap.py index 6de9f7e74..29343e44a 100644 --- a/shell-integration/ssh/bootstrap.py +++ b/shell-integration/ssh/bootstrap.py @@ -162,9 +162,10 @@ def compile_terminfo(base): [tic, '-x', '-o', os.path.join(base, tname), os.path.join(base, '.terminfo', 'kitty.terminfo')], stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) + output = p.stdout.read() rc = p.wait() if rc != 0: - getattr(sys.stderr, 'buffer', sys.stderr).write(p.stdout) + getattr(sys.stderr, 'buffer', sys.stderr).write(output) raise SystemExit('Failed to compile the terminfo database')