Skip to content
Snippets Groups Projects
Commit 1b571bef authored by Torben Miny's avatar Torben Miny
Browse files

Merge branch 'fix/xml_empty_qualifier' into 'master'

adapter.xml: Finally fix deserialization of empty <qualifier> tags

Closes #132

See merge request !72
parents 1de1f32b 302f05e8
No related branches found
No related tags found
1 merge request!72adapter.xml: Finally fix deserialization of empty <qualifier> tags
Pipeline #402281 failed
......@@ -440,6 +440,8 @@ class AASFromXmlDecoder:
# TODO: simplify this should our suggestion regarding the XML schema get accepted
# https://git.rwth-aachen.de/acplt/pyi40aas/-/issues/57
for constraint in element.findall(NS_AAS + "qualifier"):
if len(constraint) == 0:
continue
if len(constraint) > 1:
logger.warning(f"{_element_pretty_identifier(constraint)} has more than one constraint, "
"using the first one...")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment