Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zrgt committed Aug 19, 2024
1 parent ca86c38 commit 39edb23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basyx/aas/adapter/xml/xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ def amend_has_data_specification_attrs(cls, element: etree.Element, obj: model.H
def _amend_extension_attrs(cls, element: etree.Element, obj: model.HasExtension):
extension_elem = element.find(NS_AAS + "extensions")
if extension_elem is not None:
for extension in _child_construct_multiple(extension_elem, NS_AAS + "extension", cls.construct_extension, cls.failsafe):
for extension in _child_construct_multiple(extension_elem, NS_AAS + "extension",
cls.construct_extension, cls.failsafe):
obj.extension.add(extension)

@classmethod
Expand Down

0 comments on commit 39edb23

Please sign in to comment.