mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
fix
This commit is contained in:
parent
fc6902a383
commit
c3b40e41c6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue