#10384 - Fix flake8

This commit is contained in:
mxd4
2022-05-02 12:26:16 +02:00
parent 4d840c790c
commit 4fc196a2a5
2 changed files with 5 additions and 4 deletions

View File

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

View File

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