From f0ac17a38de8953e615bbfc3e9467b80eb785a79 Mon Sep 17 00:00:00 2001 From: aaron-kulkarni Date: Mon, 1 Jul 2024 15:56:00 -0400 Subject: [PATCH] error raising fix --- api/src/opentrons/protocol_api/instrument_context.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/opentrons/protocol_api/instrument_context.py b/api/src/opentrons/protocol_api/instrument_context.py index fec67dc7d05..4670852bb6f 100644 --- a/api/src/opentrons/protocol_api/instrument_context.py +++ b/api/src/opentrons/protocol_api/instrument_context.py @@ -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) @@ -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) @@ -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)