Skip to content

Commit 5e86bdb

Browse files
Remove potentially unclear error message (#216)
1 parent d5760b8 commit 5e86bdb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/sorunlib/_internal.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,14 @@ def check_started(client, response, timeout=60):
116116
# Wait at most ~timeout seconds while checking the status
117117
for i in range(timeout):
118118
response = _operation.status()
119+
_check_error(client, response)
119120
op_code = response.session.get('op_code')
120-
if op_code == 3:
121+
if op_code == 3: # RUNNING
121122
# Tricky to change state during testing w/little reward
122123
return # pragma: no cover
123124
time.sleep(1)
124125

125-
error = f"Check timed out. Operation {op} in Agent {instance} stuck in " + \
126-
"'starting' state.\n" + str(response)
127-
raise RuntimeError(error)
126+
print("The operation is in an unexpected state after {timeout} seconds.")
128127

129128
if op_code != 3: # RUNNING
130129
error = f"Operation {op} in Agent {instance} is not 'running'.\n" + \

0 commit comments

Comments
 (0)