From 80b17936fb64bb8a97d7deb3aa6b61e81616ee99 Mon Sep 17 00:00:00 2001 From: Shekar V Date: Thu, 25 Apr 2024 08:42:58 -0400 Subject: [PATCH] Removed else block --- embl_robot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/embl_robot.py b/embl_robot.py index 78486af7..d31214b9 100644 --- a/embl_robot.py +++ b/embl_robot.py @@ -298,11 +298,10 @@ def mount(self, gov_robot, puckPos,pinPos,sampID,**kwargs): if (e_s.find("Fatal") != -1): if self.isSampleDetected(e_s): return MOUNT_STEP_SUCCESSFUL - else: - daq_macros.robotOff() - daq_macros.disableMount() - daq_lib.gui_message(e_s + ". FATAL ROBOT ERROR - CALL STAFF! robotOff() executed.") - return MOUNT_FAILURE + daq_macros.robotOff() + daq_macros.disableMount() + daq_lib.gui_message(e_s + ". FATAL ROBOT ERROR - CALL STAFF! robotOff() executed.") + return MOUNT_FAILURE if (e_s.find("tilted") != -1 or e_s.find("Load Sample Failed") != -1 or e_s.find("Fail to calculate Pin Position") != -1): if (getBlConfig("queueCollect") == 0): daq_lib.gui_message(e_s + ". Try mounting again")