Skip to content

Commit

Permalink
Update kml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-singer committed Dec 13, 2024
1 parent 4096770 commit 08e92fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapbuilder/data/kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def parse_recursively(self, root, result):
geom = Point(self.parse_pos_list(placemark["Point"]["coordinates"]))
elif "MultiGeometry" in placemark:
if len(placemark["MultiGeometry"]) != 1:
raise ValueError(f"Placemark '{placemark["name"]}': in MultiGeometry only one type of Geometry is allowed")
msg = f"Placemark '{placemark["name"]}': in MultiGeometry only one type of Geometry is allowed"
raise ValueError(msg)

geom = self.parse_multigeometry(placemark["MultiGeometry"])
else:
Expand Down

0 comments on commit 08e92fe

Please sign in to comment.