tell; try to catch if no events occur and state goes to ready
This commit is contained in:
@@ -213,6 +213,17 @@ class TellClient:
|
||||
timeout=wait_timeout,
|
||||
)
|
||||
logger.info(f"event: {event} occurred with value: {value}")
|
||||
if event == "state" and value == 'Ready':
|
||||
logger.warning('READY does not mean mount success')
|
||||
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 as e:
|
||||
raise TellCommunicationError(f"Error: {e}")
|
||||
|
||||
if event is None or event == "state":
|
||||
logger.info(f"event: {event} occurred with value: {value}, checking command completed okay")
|
||||
self.check_command_ok(
|
||||
|
||||
Reference in New Issue
Block a user