10000 Merge pull request #18475 from brunobeltran/tex-error-message · matplotlib/matplotlib@6a75087 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a75087

Browse files
authored
Merge pull request #18475 from brunobeltran/tex-error-message
BF: ensure exception caught if no kpeswitch
2 parents 0b21c7c + 065ca41 commit 6a75087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/dviread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ def find_tex_file(filename, format=None):
10811081
cmd += [filename]
10821082
try:
10831083
result = cbook._check_and_log_subprocess(cmd, _log, **kwargs)
1084-
except RuntimeError:
1084+
except (FileNotFoundError, RuntimeError):
10851085
return ''
10861086
return result.rstrip('\n')
10871087

0 commit comments

Comments
 (0)
0