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'