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 bc3cbb0 commit 3a53d22Copy full SHA for 3a53d22
tests/test_devel.py
@@ -1,4 +1,4 @@
1
-# Copyright (c) 2020-2022 The MathWorks, Inc.
+# Copyright (c) 2020-2023 The MathWorks, Inc.
2
3
import os
4
import socket
@@ -232,6 +232,9 @@ def get_matlab_port_from_ready_file(matlab_ready_file):
232
try:
233
with open(matlab_ready_file) as f:
234
return int(f.read())
235
- except FileNotFoundError:
+ # Retry in the event that matlab_ready_file isn't created yet or
236
+ # it has been created but the matlab_port information is not yet
237
+ # written into the file which throws ValueError while converting to int.
238
+ except (FileNotFoundError, ValueError):
239
time.sleep(HALF_SECOND_DELAY)
240
continue
0 commit comments