From d33c225dd62685ae6922201b3f50eaa118dac817 Mon Sep 17 00:00:00 2001 From: CaseyBatten Date: Tue, 11 Jun 2024 14:14:17 -0400 Subject: [PATCH] pipette data provider error update --- .../protocol_engine/resources/pipette_data_provider.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/opentrons/protocol_engine/resources/pipette_data_provider.py b/api/src/opentrons/protocol_engine/resources/pipette_data_provider.py index 7cc284f9693..e29976d3fc4 100644 --- a/api/src/opentrons/protocol_engine/resources/pipette_data_provider.py +++ b/api/src/opentrons/protocol_engine/resources/pipette_data_provider.py @@ -15,6 +15,7 @@ NozzleConfigurationManager, NozzleMap, ) +from opentrons_shared_data.errors.exceptions import MissingConfigurationData from ..types import FlowRates from ...types import Point @@ -181,8 +182,8 @@ def _get_virtual_pipette_static_config_by_model( # noqa: C901 ): approved_map = map_key if approved_map is None: - raise ValueError( - "Virtual Static Nozzle Configuration does not match any approved map layout for the current pipette." + raise MissingConfigurationData( + message="Virtual Static Nozzle Configuration does not match any approved map layout for the current pipette." ) if configuration is not None: