Skip to content

Commit

Permalink
Fix imgconverter: Failed to extract translation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed May 29, 2022
1 parent 004012b commit 2c09632
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sphinx/ext/imgconverter.py
Expand Up @@ -31,11 +31,12 @@ def is_available(self) -> bool:
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:
Expand Down

0 comments on commit 2c09632

Please sign in to comment.