Skip to content

Commit 16ca323

Browse files
committed
Fix imgconverter: Failed to extract translation messages
1 parent 004012b commit 16ca323

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinx/ext/imgconverter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ def is_available(self) -> bool:
3131
return True
3232
except OSError as exc:
3333
logger.warning(__(
34-
f"Unable to run the image conversion command {self.config.image_converter!r}. "
34+
"Unable to run the image conversion command %r. "
3535
"'sphinx.ext.imgconverter' requires ImageMagick by default. "
3636
"Ensure it is installed, or set the 'image_converter' option "
3737
"to a custom conversion command.\n\n"
38-
f'Traceback: {exc}'
39-
))
38+
"Traceback: %s"
39+
), self.config.image_converter, exc)
4040
return False
4141
except CalledProcessError as exc:
4242
logger.warning(__('convert exited with error:\n'

0 commit comments

Comments
 (0)