Tools: autotest: raise exception, don't return it

Spotted by @khancyr
This commit is contained in:
Peter Barker 2018-08-13 15:42:36 +10:00 committed by Peter Barker
parent 579d471e98
commit 6e7e24ac91
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ class AutoTest(ABC):
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."""