From b88f2f1da330aeb4947956b6608eeed4c74e8d8a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 22 Oct 2017 16:26:24 +1100 Subject: [PATCH] autotest: fixed exception in convertgpx --- Tools/autotest/autotest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index e05958a581..c76dc5e5bc 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -178,7 +178,10 @@ __bin_names = { } def binary_path(step, debug=False): - vehicle = step.split(".")[1] + try: + vehicle = step.split(".")[1] + except Exception: + return None if vehicle in __bin_names: binary_name = __bin_names[vehicle]