mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix cleanup_tempdir
in imgmath (#10895)
This commit is contained in:
parent
3e29abf8de
commit
ad5e17beb3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user