From 6a9115f3eda2a22ed450260b75254c2896b50fa4 Mon Sep 17 00:00:00 2001 From: tamarzanzouri Date: Fri, 18 Oct 2024 10:38:03 -0400 Subject: [PATCH] current position outside the try --- .../opentrons/protocol_engine/commands/prepare_to_aspirate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/opentrons/protocol_engine/commands/prepare_to_aspirate.py b/api/src/opentrons/protocol_engine/commands/prepare_to_aspirate.py index b7e5fd9b8a5..d63e42a7f90 100644 --- a/api/src/opentrons/protocol_engine/commands/prepare_to_aspirate.py +++ b/api/src/opentrons/protocol_engine/commands/prepare_to_aspirate.py @@ -63,8 +63,8 @@ def __init__( async def execute(self, params: PrepareToAspirateParams) -> _ExecuteReturn: """Prepare the pipette to aspirate.""" + current_position = await self._gantry_mover.get_position(params.pipetteId) try: - current_position = await self._gantry_mover.get_position(params.pipetteId) await self._pipetting_handler.prepare_for_aspirate( pipette_id=params.pipetteId, )