Skip to content

Commit ad5e17b

Browse files
authored
Fix cleanup_tempdir in imgmath (#10895)
1 parent 3e29abf commit ad5e17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/ext/imgmath.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def cleanup_tempdir(app: Sphinx, exc: Exception) -> None:
285285
if not hasattr(app.builder, '_imgmath_tempdir'):
286286
return
287287
try:
288-
shutil.rmtree(app.builder._mathpng_tempdir) # type: ignore
288+
shutil.rmtree(app.builder._imgmath_tempdir) # type: ignore
289289
except Exception:
290290
pass
291291

0 commit comments

Comments
 (0)