File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ def robot_pause_mission(
4242 continue
4343 return None
4444
45+ # error is always set when the loop exits without returning — every iteration
46+ # either returns early or assigns error before continuing
4547 assert error is not None
4648 error_description = (
4749 f"\n Failed to pause the robot after { retries } attempts because: "
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ def robot_resume_mission(
4545 retries += 1
4646 continue
4747
48+ # error is always set when the loop exits without returning — every iteration
49+ # either returns early or assigns error before continuing
4850 assert error is not None
4951 error_description = (
5052 f"\n Failed to resume the robot after { retries + 1 } attempts because: "
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ def robot_stop_mission(
4343 continue
4444 return None
4545
46+ # error is always set when the loop exits without returning — every iteration
47+ # either returns early or assigns error before continuing
4648 assert error is not None
4749 error_description = (
4850 f"\n Failed to stop the robot after { retries } attempts because: "
You can’t perform that action at this time.
0 commit comments