From 16ca3237bdcdc1b45b6c839af201802aeaf937c2 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 29 May 2022 16:23:04 +0900 Subject: [PATCH] Fix imgconverter: Failed to extract translation messages --- sphinx/ext/imgconverter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sphinx/ext/imgconverter.py b/sphinx/ext/imgconverter.py index 9d6708d2fa3..2a2260c17dd 100644 --- a/sphinx/ext/imgconverter.py +++ b/sphinx/ext/imgconverter.py @@ -31,12 +31,12 @@ def is_available(self) -> bool: 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'