Skip to content

Commit

Permalink
error message correction
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Aug 7, 2024
1 parent cfaffe4 commit 294e091
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions api/src/opentrons/hardware_control/instruments/ot3/pipette.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
InvalidLiquidClassName,
CommandPreconditionViolated,
PythonException,
InvalidInstrumentData,
)
from opentrons_shared_data.pipette.ul_per_mm import (
piecewise_volume_conversion,
Expand Down Expand Up @@ -652,12 +653,8 @@ def set_tip_type(self, tip_type: pip_types.PipetteTipType) -> None:
try:
new_tips = self._liquid_class.supported_tips[tip_type]
except KeyError as e:
raise InvalidLiquidClassName(
message=f"There is no configuration for {tip_type.name} in liquid class {str(self._liquid_class_name)} on a {self._config.display_name}",
detail={
"current-liquid-class": str(self._liquid_class_name),
"requested-type": tip_type.name,
},
raise InvalidInstrumentData(
message=f"There is no configuration for {tip_type.name} in the pick up tip configurations for a {self._config.display_name}",
wrapping=[PythonException(e)],
) from e

Expand Down

0 comments on commit 294e091

Please sign in to comment.