Skip to content

Commit

Permalink
Fix uncaught subprocess error
Browse files Browse the repository at this point in the history
  • Loading branch information
tasket committed Jun 13, 2023
1 parent cc7e323 commit 8d87a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wyng
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ def do_exec(commands, cwd=None, check=True, out="", infile="", inlines=[], text=
def close():
rclist = [0] + list(filter(bool if pipefail else str, ( x.returncode for x in procs )))
if check and any(rclist):
raise SPr.SubprocessError("Chain exited "+repr(rclist))
raise SPr.CalledProcessError("Chain exited "+repr(rclist), commands)

for f in [inf, outf, errf]:
if type(f) is not int: f.close()
Expand Down

0 comments on commit 8d87a3d

Please sign in to comment.