mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-04 00:59:54 +02:00
Ignore absent shape configuration.
This commit is contained in:
parent
244e5a12a2
commit
bcb3425634
1 changed files with 4 additions and 1 deletions
|
@ -177,8 +177,11 @@ class ShapeExtractor:
|
|||
name = child_node.childNodes[0].nodeValue
|
||||
break
|
||||
|
||||
configuration: Dict[str, Any] = (
|
||||
self.configuration[id_] if id_ in self.configuration else {}
|
||||
)
|
||||
self.shapes[id_] = Shape.from_structure(
|
||||
self.configuration[id_], path, point, id_, name
|
||||
configuration, path, point, id_, name
|
||||
)
|
||||
else:
|
||||
error(f"not standard ID {id_}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue