Merge pull request #2576 from jschueller/patch-1

Fix MathExtError arguments in imgmath
This commit is contained in:
Takeshi KOMIYA
2016-05-26 00:48:39 +09:00

View File

@@ -185,7 +185,7 @@ def render_math(self, math):
stdout, stderr = p.communicate()
if p.returncode != 0:
raise MathExtError('%s exited with error',
raise MathExtError('%s exited with error' %
image_translator, stderr, stdout)
depth = None
if use_preview and image_format == 'png': # depth is only useful for png