diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-05-29 16:23:04 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-05-29 16:24:35 +0900 |
commit | 16ca3237bdcdc1b45b6c839af201802aeaf937c2 (patch) | |
tree | c95b14e1d88a147da166578ef25d014db703baa1 | |
parent | 004012b6df0fcec67312373f8d89327f5b09a7e6 (diff) | |
download | sphinx-git-16ca3237bdcdc1b45b6c839af201802aeaf937c2.tar.gz |
Fix imgconverter: Failed to extract translation messages
-rw-r--r-- | sphinx/ext/imgconverter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/imgconverter.py b/sphinx/ext/imgconverter.py index 9d6708d2f..2a2260c17 100644 --- a/sphinx/ext/imgconverter.py +++ b/sphinx/ext/imgconverter.py @@ -31,12 +31,12 @@ class ImagemagickConverter(ImageConverter): return True except OSError as exc: logger.warning(__( - f"Unable to run the image conversion command {self.config.image_converter!r}. " + "Unable to run the image conversion command %r. " "'sphinx.ext.imgconverter' requires ImageMagick by default. " "Ensure it is installed, or set the 'image_converter' option " "to a custom conversion command.\n\n" - f'Traceback: {exc}' - )) + "Traceback: %s" + ), self.config.image_converter, exc) return False except CalledProcessError as exc: logger.warning(__('convert exited with error:\n' |