Commit e476eb90 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel
Browse files

wta: Print stderr in case the subprocess fails

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