mirror of https://github.com/ArduPilot/ardupilot
Tools: autotest: raise exception, don't return it
Spotted by @khancyr
This commit is contained in:
parent
579d471e98
commit
6e7e24ac91
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue