Skip to content

Commit

Permalink
don't catch stalls in detect_liquid_presence
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kulkarni committed Jul 15, 2024
1 parent e4eba63 commit 833b607
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2067,9 +2067,7 @@ def detect_liquid_presence(self, well: labware.Well) -> bool:
self._core.liquid_probe_without_recovery(well._core, loc)
except ProtocolCommandFailedError as e:
# if we handle the error, we change the protocl state from error to valid
if isinstance(e.original_error, LiquidNotFoundError) or isinstance(
e.original_error, StallOrCollisionDetectedError
):
if isinstance(e.original_error, LiquidNotFoundError):
return False
raise e
else:
Expand Down

0 comments on commit 833b607

Please sign in to comment.