Skip to content

Commit

Permalink
bug fix on missing stdout/err attributes on ProcessExecutionError object
Browse files Browse the repository at this point in the history
  • Loading branch information
koreno committed Jan 22, 2023
1 parent e7eb5f4 commit 6dd012f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plumbum/commands/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def __init__(self, argv, retcode, stdout, stderr, message=None, host=None):
if isinstance(stdout, list):
assert isinstance(stderr, list)
self.all_output += self._format_lines(heapq.merge(stdout, stderr))
self.stdout = "\n".join(line for *_, line in stdout)
self.stderr = "\n".join(line for *_, line in stderr)
else:
if isinstance(stdout, bytes):
stdout = ascii(stdout)
Expand Down

0 comments on commit 6dd012f

Please sign in to comment.