Skip to content

Commit 88a44d8

Browse files
committed
is_parallel_worker: more robust
1 parent d6a11ec commit 88a44d8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

+stdlib/is_parallel_worker.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818

1919
ispar = false;
2020

21-
addons = matlab.addons.installedAddons();
21+
try
22+
addons = matlab.addons.installedAddons();
23+
catch
24+
return
25+
end
26+
2227
if any(contains(addons.Name, 'Parallel Computing Toolbox'))
2328
ispar = ~isempty(getCurrentWorker());
2429
end
File renamed without changes.

0 commit comments

Comments
 (0)