Skip to content
Snippets Groups Projects
Commit e476eb90 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel
Browse files

wta: Print stderr in case the subprocess fails

parent d9e8db61
Branches
No related tags found
No related merge requests found
...@@ -81,11 +81,15 @@ def run_one(args, i): ...@@ -81,11 +81,15 @@ def run_one(args, i):
copar_args = [copar, 'refine', '--stats-json', f] copar_args = [copar, 'refine', '--stats-json', f]
try:
out = subprocess.run( out = subprocess.run(
copar_args, copar_args,
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
check=True) check=True)
except subprocess.CalledProcessError as e:
print("error: %s" % e.stderr.decode('utf-8'))
raise
stats = json.loads(out.stderr.decode('utf-8')) stats = json.loads(out.stderr.decode('utf-8'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment