Skip to content

Commit 2df5070

Browse files
authored
fix(api): check shuttle presence before checking hopper (#18724)
# Overview We should check the shuttle location before checking the hopper, so we're not confusing the user by showing an empty hopper error when the shuttle is obviously missing. Fixes RQA-4291
1 parent 0616695 commit 2df5070

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/src/opentrons/hardware_control/modules/flex_stacker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,10 @@ async def dispense_labware(
418418
) -> None:
419419
"""Dispenses the next labware in the stacker."""
420420
self.verify_labware_height(labware_height)
421+
await self._prepare_for_action()
421422
if enforce_hopper_lw_sensing:
422423
await self.verify_hopper_labware_presence(True)
423424

424-
await self._prepare_for_action()
425-
426425
# Move platform along the X then Z axis
427426
await self._move_and_home_axis(StackerAxis.X, Direction.RETRACT, HOME_OFFSET_MD)
428427
await self._move_and_home_axis(StackerAxis.Z, Direction.EXTEND, HOME_OFFSET_SM)

0 commit comments

Comments
 (0)