Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98e64ba

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #18475: BF: ensure exception caught if no kpeswitch
1 parent 254f062 commit 98e64ba

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
@@ -1080,7 +1080,7 @@ def find_tex_file(filename, format=None):
10801080
cmd += [filename]
10811081
try:
10821082
result = cbook._check_and_log_subprocess(cmd, _log, **kwargs)
1083-
except RuntimeError:
1083+
except (FileNotFoundError, RuntimeError):
10841084
return ''
10851085
return result.rstrip('\n')
10861086

0 commit comments

Comments
 (0)