1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

TOOLS/docutils-wrapper: properly propagate failures

This commit is contained in:
Thomas Weißschuh 2023-03-06 18:00:57 +00:00 committed by Dudemanguy
parent d6f70ef96b
commit 375e527620

View File

@ -55,8 +55,11 @@ for opt, optarg in zip(argv, argv[1:]):
depfile = optarg depfile = optarg
try: try:
subprocess.run(argv) proc = subprocess.run(argv, check=True)
convert_depfile(output, depfile) convert_depfile(output, depfile)
except: except:
remove(output) remove(output)
remove(depfile) remove(depfile)
sys.exit(1)
sys.exit(proc.returncode)