Skip to content

Commit

Permalink
kmlread: correct handling of bad/unknown points
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Oct 23, 2023
1 parent 78639cc commit 60d4b6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MAVProxy/modules/mavproxy_kmlread.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def loadkml(self, filename):
point = kmlread.readObject(n)
except Exception as ex:
continue
if point is None:
continue

#and place any polygons on the map
if self.mpstate.map is not None and point[0] == 'Polygon':
Expand Down

0 comments on commit 60d4b6c

Please sign in to comment.