Merge pull request #10486 from tk0miya/fix_babel_extract_message

Fix imgconverter: Failed to extract translation messages
This commit is contained in:
Takeshi KOMIYA 2022-05-29 16:36:23 +09:00 committed by GitHub
commit bdeb627c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'