From 6e7e24ac91f49dcc0a11b4340a412d9745ddd107 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 13 Aug 2018 15:42:36 +1000 Subject: [PATCH] Tools: autotest: raise exception, don't return it Spotted by @khancyr --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 0ea0af1d2a..dee88405d1 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -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."""