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

This commit is contained in:
appleb_m committed 2026-06-16 12:12:30 +02:00
1 parent b8ee526d04
commit 7eb977d51a
1 file changed
+12 -3
+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(