mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
Fix KeyError: 'value' when parse TMX
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user