Ignore absent shape configuration.

This commit is contained in:
Sergey Vartanov 2021-06-25 02:16:04 +03:00
parent 244e5a12a2
commit bcb3425634

View file

@ -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_}")