From f8639ba81a8afd8f175620292121c409f6b0cd48 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:25:24 -0500 Subject: [PATCH] add a comment --- api/src/opentrons/protocol_api/module_contexts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/opentrons/protocol_api/module_contexts.py b/api/src/opentrons/protocol_api/module_contexts.py index a277403612e..7e8cc60a1f2 100644 --- a/api/src/opentrons/protocol_api/module_contexts.py +++ b/api/src/opentrons/protocol_api/module_contexts.py @@ -1162,6 +1162,8 @@ def retrieve(self) -> Labware: """Release and return a labware at the bottom of the labware stack.""" self._core.retrieve() labware_core = self._protocol_core.get_labware_on_module(self._core) + # the core retrieve command should have already raised the error + # if labware_core is None, this is just to satisfy the type checker assert labware_core is not None, "Retrieve failed to return labware" # check core map first try: