Skip to content

Commit ff349b9

Browse files
committed
Safeguard retries due to license failures
1 parent ad67723 commit ff349b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_check_swatinit_simulators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def run_reservoir_simulator(simulator, resmodel, perform_qc=True):
6969
if (
7070
result.returncode != 0
7171
and "runeclipse" in simulator
72+
and result.stdout is not None
73+
and result.stderr is not None
7274
and "LICENSE FAILURE" in result.stdout.decode() + result.stderr.decode()
7375
):
7476
print("Eclipse failed due to license server issues. Retrying in 30 seconds.")

0 commit comments

Comments
 (0)