Skip to content

Commit 2cea256

Browse files
committed
Raise RuntimeError instead of OSError
1 parent 4cdd4bd commit 2cea256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_pgf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def __init__(self):
319319
cwd=self.tmpdir)
320320
except OSError as e:
321321
if e.errno == errno.ENOENT:
322-
raise OSError(errno.ENOENT, "Latex command not found. "
322+
raise RuntimeError("Latex command not found. "
323323
"Install '%s' or change pgf.texsystem to the desired command."
324324
% self.texcommand
325325
)

0 commit comments

Comments
 (0)