mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix imgconverter: Failed to extract translation messages
This commit is contained in:
parent
004012b6df
commit
16ca3237bd
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user