mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#10384 - Fix flake8
This commit is contained in:
@@ -32,7 +32,7 @@ Configuration
|
||||
|
||||
.. confval:: image_converter
|
||||
|
||||
A path a conversion command. By default, the imgconverter finds
|
||||
A path to a conversion command. By default, the imgconverter finds
|
||||
the command from search paths.
|
||||
|
||||
On Unix platform, :command:`convert` command is used by default.
|
||||
|
||||
@@ -31,9 +31,10 @@ class ImagemagickConverter(ImageConverter):
|
||||
return True
|
||||
except OSError as exc:
|
||||
logger.warning(__(
|
||||
f"Unable to run the image conversion command {self.config.image_converter!r}!\n"
|
||||
"'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"Unable to run the image conversion command {self.config.image_converter!r}!"
|
||||
"\n'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}'
|
||||
))
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user