Skip to content

Commit

Permalink
Update call sites part 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Aug 20, 2024
1 parent 512108c commit b9626c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/src/opentrons/protocol_api/instrument_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand All @@ -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
Expand Down

0 comments on commit b9626c8

Please sign in to comment.