summaryrefslogtreecommitdiff
path: root/sphinx/ext/imgmath.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/ext/imgmath.py')
-rw-r--r--sphinx/ext/imgmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py
index 7657ae3aa..0c034a599 100644
--- a/sphinx/ext/imgmath.py
+++ b/sphinx/ext/imgmath.py
@@ -278,7 +278,7 @@ def clean_up_files(app: Sphinx, exc: Exception) -> None:
if hasattr(app.builder, '_imgmath_tempdir'):
try:
- shutil.rmtree(app.builder._imgmath_tempdir) # type: ignore
+ shutil.rmtree(app.builder._imgmath_tempdir)
except Exception:
pass