This commit is contained in:
a 2024-08-07 10:39:41 +02:00
parent fc6902a383
commit c3b40e41c6

View file

@ -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)