Merge pull request #60 from laqieer/development

Fix KeyError: 'value' for parsing TMX Map Format
This commit is contained in:
Darren Eberly
2022-08-10 10:54:55 -04:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ def parse(raw_properties: etree.Element) -> Properties:
for raw_property in raw_properties.findall("property"):
type_ = raw_property.attrib.get("type")
value_ = raw_property.attrib["value"]
value_ = raw_property.attrib.get("value")
if type_ == "file":
value = Path(value_)
elif type_ == "color":