Skip to content

Commit

Permalink
adapter.xml: change type of an exception to AssertionError
Browse files Browse the repository at this point in the history
The respective exception marks an error in the program, which should
correctly be an `AssertionError`.
  • Loading branch information
jkhsjdhjs committed Mar 13, 2024
1 parent d7a2283 commit 776bbda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basyx/aas/adapter/xml/xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ def _failsafe_construct_mandatory(element: etree.Element, constructor: Callable[
"""
constructed = _failsafe_construct(element, constructor, False, **kwargs)
if constructed is None:
raise TypeError("The result of a non-failsafe _failsafe_construct() call was None! "
"This is a bug in the Eclipse BaSyx Python SDK XML deserialization, please report it!")
raise AssertionError("The result of a non-failsafe _failsafe_construct() call was None! "
"This is a bug in the Eclipse BaSyx Python SDK XML deserialization, please report it!")
return constructed


Expand Down

0 comments on commit 776bbda

Please sign in to comment.