tell:debugging, trying to catch and interpret roboto returns busy during wait for events correctly

This commit is contained in:
appleb_m
2026-06-24 15:30:01 +02:00
parent 13c6119d3a
commit 527ac23ad7
+12 -3
View File
@@ -221,9 +221,18 @@ class TellClient:
)
logger.info(f"Check command okay response: {msg}")
return TellEventValueEnum.SUCCESS
except Exception as e:
raise TellCommunicationError(f"Error: {e}")
except Exception:
raise
if event == "state" and value == 'Busy':
logger.warning('got busy response form robot, waiting for mount to complete')
try:
msg = self.check_command_ok(
timeout=wait_timeout, msg=f"Mount {segment}{puck}-{sample}: "
)
logger.info(f"Check command okay response: {msg}")
return TellEventValueEnum.SUCCESS
except Exception:
raise
if event is None or event == "state":
logger.info(f"event: {event} occurred with value: {value}, checking command completed okay")
self.check_command_ok(