Wait for subprocesses to finish and traceback on failure for visibility.
This commit is contained in:
parent
c5d3ca4bfd
commit
cadad801c7
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue