Skip to content

Commit

Permalink
Tools: autotest: raise exception, don't return it
Browse files Browse the repository at this point in the history
Spotted by @khancyr
  • Loading branch information
peterbarker committed Aug 15, 2018
1 parent 579d471 commit 6e7e24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/autotest/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def do_set_mode_via_command_long(self):
if m.custom_mode == custom_mode:
return
time.sleep(0.1)
return AutoTestTimeoutException()
raise AutoTestTimeoutException()

def reach_heading_manual(self, heading):
"""Manually direct the vehicle to the target heading."""
Expand Down

0 comments on commit 6e7e24a

Please sign in to comment.