Skip to content

Commit

Permalink
Removed else block
Browse files Browse the repository at this point in the history
  • Loading branch information
vshekar committed Apr 25, 2024
1 parent eaec903 commit 80b1793
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions embl_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 80b1793

Please sign in to comment.