Skip to content

Commit 27f03ce

Browse files
committed
Fix MathExtError arguments in imgmath
It's constructor is: ```class MathExtError(SphinxError): def __init__(self, msg, stderr=None, stdout=None):```
1 parent cf2ff75 commit 27f03ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/ext/imgmath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def render_math(self, math):
185185

186186
stdout, stderr = p.communicate()
187187
if p.returncode != 0:
188-
raise MathExtError('%s exited with error',
188+
raise MathExtError('%s exited with error' %
189189
image_translator, stderr, stdout)
190190
depth = None
191191
if use_preview and image_format == 'png': # depth is only useful for png

0 commit comments

Comments
 (0)