Commit 9f03f09c authored by Zsolt Ero's avatar Zsolt Ero

raise error and debug log for no geometries found case

parent f4fd8629
......@@ -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, pretty_print=True)))
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