Skip to content

Commit a0f9cf2

Browse files
authored
Fix KeyError: 'value' when parse TMX
1 parent 17700e8 commit a0f9cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytiled_parser/parsers/tmx/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def parse(raw_properties: etree.Element) -> Properties:
1414
for raw_property in raw_properties.findall("property"):
1515

1616
type_ = raw_property.attrib.get("type")
17-
value_ = raw_property.attrib["value"]
17+
value_ = raw_property.attrib.get("value")
1818
if type_ == "file":
1919
value = Path(value_)
2020
elif type_ == "color":

0 commit comments

Comments
 (0)