sim_vehicle.py: avoid exception when frame information not found

This commit is contained in:
Peter Barker 2016-05-08 00:31:23 +10:00
parent db5f50e08e
commit 39c29820c4
1 changed files with 1 additions and 0 deletions

View File

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