Fix cleanup_tempdir in imgmath (#10895)

This commit is contained in:
Julien Schueller 2022-10-05 14:36:24 +02:00 committed by GitHub
parent 3e29abf8de
commit ad5e17beb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,7 +285,7 @@ def cleanup_tempdir(app: Sphinx, exc: Exception) -> None:
if not hasattr(app.builder, '_imgmath_tempdir'):
return
try:
shutil.rmtree(app.builder._mathpng_tempdir) # type: ignore
shutil.rmtree(app.builder._imgmath_tempdir) # type: ignore
except Exception:
pass