Skip to content

Commit

Permalink
fix index error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Oct 22, 2024
1 parent d2778af commit b26eff9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions robot-server/robot_server/runs/run_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ def _get_historical_run_last_command(self, run_id: str) -> Optional[CommandPoint
command_slice = self._run_store.get_commands_slice(
run_id=run_id, cursor=None, length=1, include_fixit_commands=True
)
if not command_slice.commands:
return None
command = command_slice.commands[-1]

return (
Expand Down

0 comments on commit b26eff9

Please sign in to comment.