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

Skip to content

Commit 065ca41

Browse files
committed
BF: ensure exception caught if no kpeswitch
1 parent 3d75230 commit 065ca41

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)