Skip to content

Commit

Permalink
error raising fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kulkarni committed Jul 1, 2024
1 parent fd51c9a commit f0ac17a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ def detect_liquid(self, well: labware.Well) -> bool:
:returns: A boolean.
"""
if well is None:
raise WellDoesNotExistError
raise WellDoesNotExistError()

try:
height = self._core.find_liquid_level(well._core)
Expand All @@ -2072,7 +2072,7 @@ def require_liquid(self, well: labware.Well) -> None:
:returns: None.
"""
if well is None:
raise WellDoesNotExistError
raise WellDoesNotExistError()

try:
self._core.find_liquid_level(well._core)
Expand All @@ -2086,7 +2086,7 @@ def get_liquid_height(self, well: labware.Well) -> float:
:returns: A float representing the height of the liquid.
"""
if well is None:
raise WellDoesNotExistError
raise WellDoesNotExistError()

try:
height = self._core.find_liquid_level(well._core)
Expand Down

0 comments on commit f0ac17a

Please sign in to comment.