Skip to content

Commit

Permalink
Avoid KeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jan 22, 2024
1 parent 1d8e625 commit 4846561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynxtools/dataconverter/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def validate_data_dict(template, data, nxdl_root: ET.Element):
# otherwise we just pass it along
if (
elem is not None
and elem.attrib["name"] == entry_name
and elem.attrib.get("name") == entry_name
and remove_namespace_from_tag(elem.tag) in ("field", "attribute")
):
check_optionality_based_on_parent_group(
Expand Down

0 comments on commit 4846561

Please sign in to comment.