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 16ca323
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx/ext/imgconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +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:
logger.warning(__('convert exited with error:\n'
Expand Down

0 comments on commit 16ca323

Please sign in to comment.