Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 17, 2025
1 parent 78dfdcd commit f8639ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/opentrons/protocol_api/module_contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f8639ba

Please sign in to comment.