Wait for subprocesses to finish and traceback on failure for visibility.

This commit is contained in:
Ralph Bean 2017-08-27 20:10:17 +00:00
parent c5d3ca4bfd
commit cadad801c7

View file

@ -27,7 +27,10 @@ def handle(content):
'--verbose',
] + taglist.split()
print("Running %r" % cmd)
sp.Popen(cmd)
proc = sp.Popen(cmd)
status = proc.wait()
if status:
raise RuntimeError("%r gave return code %r" % (cmd, status))
def main(fullname, fields, content):