From 834f94eaaaf7812419434f2375560d50fa1d9a44 Mon Sep 17 00:00:00 2001 From: Brian Koopman Date: Mon, 16 Jun 2025 16:10:48 -0400 Subject: [PATCH] Remove potentially unclear error message --- src/sorunlib/_internal.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sorunlib/_internal.py b/src/sorunlib/_internal.py index 794ab2e..c59c876 100644 --- a/src/sorunlib/_internal.py +++ b/src/sorunlib/_internal.py @@ -116,15 +116,14 @@ def check_started(client, response, timeout=60): # Wait at most ~timeout seconds while checking the status for i in range(timeout): response = _operation.status() + _check_error(client, response) op_code = response.session.get('op_code') - if op_code == 3: + if op_code == 3: # RUNNING # Tricky to change state during testing w/little reward return # pragma: no cover time.sleep(1) - error = f"Check timed out. Operation {op} in Agent {instance} stuck in " + \ - "'starting' state.\n" + str(response) - raise RuntimeError(error) + print("The operation is in an unexpected state after {timeout} seconds.") if op_code != 3: # RUNNING error = f"Operation {op} in Agent {instance} is not 'running'.\n" + \