We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2424937 commit 2bf6acfCopy full SHA for 2bf6acf
1 file changed
+stdlib/has_python.m
@@ -4,11 +4,13 @@
4
5
function y = has_python()
6
7
-r = matlabRelease();
8
-if ispc && r.Release == "R2026a" && r.Stage == "prerelease"
9
- % avoid python due to bug
10
- y = false;
11
- return
+try %#ok<TRYNC>
+ r = matlabRelease();
+ if ispc && r.Release == "R2026a" && r.Stage == "prerelease"
+ % avoid python due to bug
+ y = false;
12
+ return
13
+ end
14
end
15
16
y = ~isempty(stdlib.python_version());
0 commit comments