Skip to content

Commit

Permalink
fix: check that the axis is in the axis map
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura-Danielle committed Oct 8, 2024
1 parent 5617e6e commit 986995d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/opentrons/hardware_control/motion_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def target_axis_map_from_absolute(
}
axis_map.update(axis_with_offset)
target_position = OrderedDict(
((ax, axis_map[ax]) for ax in EMPTY_ORDERED_DICT.keys())
((ax, axis_map[ax]) for ax in EMPTY_ORDERED_DICT.keys() if ax in axis_map.keys())
)
return target_position

Expand Down

0 comments on commit 986995d

Please sign in to comment.