autotest: fixed exception in convertgpx

This commit is contained in:
Andrew Tridgell 2017-10-22 16:26:24 +11:00
parent fc237ee9a0
commit b88f2f1da3

View File

@ -178,7 +178,10 @@ __bin_names = {
} }
def binary_path(step, debug=False): def binary_path(step, debug=False):
try:
vehicle = step.split(".")[1] vehicle = step.split(".")[1]
except Exception:
return None
if vehicle in __bin_names: if vehicle in __bin_names:
binary_name = __bin_names[vehicle] binary_name = __bin_names[vehicle]