From b9626c83d32f701dba40a339eb61c1c1db0a1dd8 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Tue, 20 Aug 2024 10:52:27 -0400 Subject: [PATCH] Update call sites part 2. --- api/src/opentrons/protocol_api/instrument_context.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/src/opentrons/protocol_api/instrument_context.py b/api/src/opentrons/protocol_api/instrument_context.py index b9dc53c7470..c328600772f 100644 --- a/api/src/opentrons/protocol_api/instrument_context.py +++ b/api/src/opentrons/protocol_api/instrument_context.py @@ -2066,6 +2066,8 @@ def configure_nozzle_layout( NozzleLayout.QUADRANT, ] if style in disabled_layouts: + # todo(mm, 2024-08-20): UnsupportedAPIError boils down to an API_REMOVED + # error code, which is not correct here. raise UnsupportedAPIError( message=f"Nozzle layout configuration of style {style.value} is currently unsupported." ) @@ -2076,7 +2078,11 @@ def configure_nozzle_layout( < _PARTIAL_NOZZLE_CONFIGURATION_SINGLE_ROW_PARTIAL_COLUMN_ADDED_IN ) and (style not in original_enabled_layouts): raise APIVersionError( - f"Nozzle layout configuration of style {style.value} is unsupported in API Versions lower than {_PARTIAL_NOZZLE_CONFIGURATION_SINGLE_ROW_PARTIAL_COLUMN_ADDED_IN}." + api_element=f"Nozzle layout configuration of style {style.value}", + until_version=str( + _PARTIAL_NOZZLE_CONFIGURATION_SINGLE_ROW_PARTIAL_COLUMN_ADDED_IN + ), + current_version=str(self._api_version), ) front_right_resolved = front_right