Fix ids.from_string always breaking on validation (4a9cf43)

Since `tree` is never provided.
This commit is contained in:
Andrej730
2025-09-15 17:49:30 +05:00
parent cc7732ecbf
commit 5a2ed576c4
+1
View File
@@ -63,6 +63,7 @@ def open(filepath: str, validate: bool = False) -> Ids:
def from_string(xml: str, validate: bool = False) -> Ids:
tree = ET.ElementTree(ET.fromstring(xml))
try:
if validate:
get_schema().validate(tree)