Skip to content

Commit f815663

Browse files
committed
python: catch more errors
1 parent cec306b commit f815663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+stdlib/+python/private/pythonException.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function pythonException(e)
22

33
switch e.identifier
44
case 'MATLAB:Python:PyException'
5-
if ~contains(e.message, "FileNotFoundError")
5+
if ~contains(e.message, ["NotADirectoryError", "FileNotFoundError"])
66
rethrow(e)
77
end
88
otherwise, rethrow(e)

0 commit comments

Comments
 (0)