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

Skip to content

Commit c23f81e

Browse files
authored
Merge pull request #18485 from meeseeksmachine/auto-backport-of-pr-18475-on-v3.3.x
Backport PR #18475 on branch v3.3.x (BF: ensure exception caught if no kpeswitch)
2 parents 7e810d1 + 98e64ba commit c23f81e

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)