mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 18:07:12 +01:00
Re-raise TimeoutExpired from process executors
This commit is contained in:
parent
af172413f4
commit
fc2946ce64
@ -852,6 +852,10 @@ def run_prefork_process(cmd, kwargs, cargs):
|
||||
raise OSError(trace)
|
||||
elif ex == 'ValueError':
|
||||
raise ValueError(trace)
|
||||
elif ex == 'TimeoutExpired':
|
||||
exc = TimeoutExpired(cmd, timeout=cargs['timeout'], output=out)
|
||||
exc.stderr = err
|
||||
raise exc
|
||||
else:
|
||||
raise Exception(trace)
|
||||
return ret, out, err
|
||||
|
Loading…
Reference in New Issue
Block a user