From c3b40e41c6c6a686f082c2771eb57edd071ff13d Mon Sep 17 00:00:00 2001 From: a <1@1.1> Date: Wed, 7 Aug 2024 10:39:41 +0200 Subject: [PATCH] fix --- xonsh/procs/pipelines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/procs/pipelines.py b/xonsh/procs/pipelines.py index ab9736b0d..eec6c6c9e 100644 --- a/xonsh/procs/pipelines.py +++ b/xonsh/procs/pipelines.py @@ -278,7 +278,7 @@ class CommandPipeline: lines = b.splitlines(keepends=True) yield from lines self.end(tee_output=False) - elif self.captured == "stdout": + elif self.captured == "stdout" and stdout is not None: b = stdout.read() s = self._decode_uninew(b, universal_newlines=True) self.lines = s.splitlines(keepends=True)