mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix MathExtError arguments in imgmath
It's constructor is: ```class MathExtError(SphinxError): def __init__(self, msg, stderr=None, stdout=None):```
This commit is contained in:
parent
cf2ff7594f
commit
27f03cecd5
@ -185,7 +185,7 @@ def render_math(self, math):
|
|||||||
|
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise MathExtError('%s exited with error',
|
raise MathExtError('%s exited with error' %
|
||||||
image_translator, stderr, stdout)
|
image_translator, stderr, stdout)
|
||||||
depth = None
|
depth = None
|
||||||
if use_preview and image_format == 'png': # depth is only useful for png
|
if use_preview and image_format == 'png': # depth is only useful for png
|
||||||
|
Loading…
Reference in New Issue
Block a user