Fix imgconverter: Failed to extract translation messages

This commit is contained in:
Takeshi KOMIYA 2022-05-29 16:23:04 +09:00
parent 004012b6df
commit 16ca3237bd

View File

@ -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'