Skip to content

Commit 553a325

Browse files
committed
python: catch NotImplementedError
1 parent 154a670 commit 553a325

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
@@ -4,7 +4,7 @@ function pythonException(e)
44
case {'MATLAB:Python:PythonUnavailable', 'MATLAB:undefinedVarOrClass'}
55
% Python not available or Python imported module not available
66
case 'MATLAB:Python:PyException'
7-
if ~contains(e.message, ["is not in the subpath of", "NotADirectoryError", "FileNotFoundError"])
7+
if ~contains(e.message, ["NotImplementedError", "is not in the subpath of", "NotADirectoryError", "FileNotFoundError"])
88
rethrow(e)
99
end
1010
otherwise, rethrow(e)

0 commit comments

Comments
 (0)