From 065ca4194846b5e21a289759afb9af6245018bda Mon Sep 17 00:00:00 2001 From: Bruno Beltran Date: Mon, 14 Sep 2020 03:39:39 -0700 Subject: [PATCH] BF: ensure exception caught if no kpeswitch --- lib/matplotlib/dviread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/dviread.py b/lib/matplotlib/dviread.py index 48de9ab6c07f..125ab98ed3c0 100644 --- a/lib/matplotlib/dviread.py +++ b/lib/matplotlib/dviread.py @@ -1081,7 +1081,7 @@ def find_tex_file(filename, format=None): cmd += [filename] try: result = cbook._check_and_log_subprocess(cmd, _log, **kwargs) - except RuntimeError: + except (FileNotFoundError, RuntimeError): return '' return result.rstrip('\n')