File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -309,9 +309,13 @@ def __init__(self):
309309 self .texcommand = get_texcommand ()
310310 self .latex_header = LatexManager ._build_latex_header ()
311311 latex_end = "\n \\ makeatletter\n \\ @@end\n "
312- latex = subprocess .Popen ([self .texcommand , "-halt-on-error" ],
313- stdin = subprocess .PIPE , stdout = subprocess .PIPE ,
314- cwd = self .tmpdir )
312+ try :
313+ latex = subprocess .Popen ([self .texcommand , "-halt-on-error" ],
314+ stdin = subprocess .PIPE ,
315+ stdout = subprocess .PIPE ,
316+ cwd = self .tmpdir )
317+ except OSError :
318+ raise RuntimeError ("Error starting process '%s'" % self .texcommand )
315319 test_input = self .latex_header + latex_end
316320 stdout , stderr = latex .communicate (test_input .encode ("utf-8" ))
317321 if latex .returncode != 0 :
You can’t perform that action at this time.
0 commit comments