Skip to content

Commit 2bf6acf

Browse files
committed
has_python: pre 2020b compatible
1 parent 2424937 commit 2bf6acf

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

+stdlib/has_python.m

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
function y = has_python()
66

7-
r = matlabRelease();
8-
if ispc && r.Release == "R2026a" && r.Stage == "prerelease"
9-
% avoid python due to bug
10-
y = false;
11-
return
7+
try %#ok<TRYNC>
8+
r = matlabRelease();
9+
if ispc && r.Release == "R2026a" && r.Stage == "prerelease"
10+
% avoid python due to bug
11+
y = false;
12+
return
13+
end
1214
end
1315

1416
y = ~isempty(stdlib.python_version());

0 commit comments

Comments
 (0)