diff options
Diffstat (limited to 'sphinx/ext/imgmath.py')
-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 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 |