Skip to content

Commit 52b59d2

Browse files
committed
Fix getting clean shapes.
1 parent d5f6ad0 commit 52b59d2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎map_machine/scheme.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def get_clean_shapes(self) -> list[str] | None:
268268
"""Get list of shape identifiers for shapes."""
269269
if not self.shapes:
270270
return None
271-
return [x["shape"] for x in self.shapes]
271+
return [x["shape"] for x in self.shapes if "shape" in x]
272272

273273

274274
@dataclass

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ include = ["map_machine*"]
7171
[tool.setuptools.package-data]
7272
map_machine = [
7373
"icons/config.json",
74-
"scheme/nodes.yml",
75-
"scheme/default.yml",
74+
"scheme/*.yml",
7675
]
7776

7877
[tool.setuptools.dynamic]

0 commit comments

Comments
 (0)