diff options
author | Julien Schueller <schueller@phimeca.com> | 2022-10-05 15:36:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 15:36:24 +0300 |
commit | ad5e17beb304e1ddc67accd22c5d1115eb28e9d3 (patch) | |
tree | db0caaec6b97008f5417d521d4de35ede24bc429 | |
parent | 3e29abf8de3f6f29aff18859b5eb88c8c79a1cbc (diff) |
Fix `cleanup_tempdir` in imgmath (#10895)
-rw-r--r-- | sphinx/ext/imgmath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py index ddef58187..a7f1fc928 100644 --- a/sphinx/ext/imgmath.py +++ b/sphinx/ext/imgmath.py @@ -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 |