Commit de7b2334 authored by Christian Ledermann's avatar Christian Ledermann

Merge pull request #44 from hyperknot/raise-nogeom

raise error and debug log for no geometries found case
parents f45883fa f6bd1cf1
......@@ -1095,7 +1095,10 @@ class Placemark(_Feature):
geom.from_element(multigeometry)
self._geometry = geom
return
logger.warn('No geometries found')
logger.debug(u'Problem with element: {}'.format(etree.tostring(element)))
raise ValueError('No geometries found')
def etree_element(self):
element = super(Placemark, self).etree_element()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment