summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-03-06 19:12:18 +0000
committerDudemanguy <random342@airmail.cc>2023-03-24 02:18:39 +0000
commit707554324af40db53e2f342bce3e454d33779af8 (patch)
treeb6575f2d8801a2d849d7fb2f4fa9bcffd018bbb7 /TOOLS
parent375e527620f1216dbd0cfb2aa14cabc6b060563e (diff)
downloadmpv-707554324af40db53e2f342bce3e454d33779af8.tar.bz2
mpv-707554324af40db53e2f342bce3e454d33779af8.tar.xz
TOOLS/docutils-wrapper: handle commands without depfile
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/docutils-wrapper.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/TOOLS/docutils-wrapper.py b/TOOLS/docutils-wrapper.py
index 4e31c37417..31ba976e64 100755
--- a/TOOLS/docutils-wrapper.py
+++ b/TOOLS/docutils-wrapper.py
@@ -56,10 +56,12 @@ for opt, optarg in zip(argv, argv[1:]):
try:
proc = subprocess.run(argv, check=True)
- convert_depfile(output, depfile)
+ if depfile is not None:
+ convert_depfile(output, depfile)
except:
remove(output)
- remove(depfile)
+ if depfile is not None:
+ remove(depfile)
sys.exit(1)
sys.exit(proc.returncode)