Browse Source

sim_vehicle.py: avoid exception when frame information not found

master
Peter Barker 9 years ago
parent
commit
39c29820c4
  1. 1
      Tools/autotest/sim_vehicle.py

1
Tools/autotest/sim_vehicle.py

@ -330,6 +330,7 @@ _options_for_frame = {
def options_for_frame(frame, opts): def options_for_frame(frame, opts):
'''return informatiom about how to sitl for frame e.g. build-type==sitl''' '''return informatiom about how to sitl for frame e.g. build-type==sitl'''
ret = None
if frame in _options_for_frame: if frame in _options_for_frame:
ret = _options_for_frame[frame] ret = _options_for_frame[frame]
else: else:

Loading…
Cancel
Save