Skip to content
Snippets Groups Projects
Commit 8a3250f9 authored by imcovangent's avatar imcovangent
Browse files

Added AssertionError raising for check of invalid leaf nodes.

Former-commit-id: 7582a967e84eec1713d91c78c004de8ea2b913da
parent 33cdd29f
No related branches found
No related tags found
No related merge requests found
...@@ -4671,6 +4671,9 @@ def _check_leafs(io_list, leafs): ...@@ -4671,6 +4671,9 @@ def _check_leafs(io_list, leafs):
logger.debug('Invalid leaf element path {}'.format(leaf[1])) logger.debug('Invalid leaf element path {}'.format(leaf[1]))
logger.debug('Reason for invalidity: longer path {} found in file {}'.format(path, file_name)) logger.debug('Reason for invalidity: longer path {} found in file {}'.format(path, file_name))
leafs.remove(leaf) leafs.remove(leaf)
raise AssertionError('Invalid leaf element found in XML file {}\n'.format(leaf[2]) +
'Invalid leaf element path {}\n'.format(leaf[1]) +
'Reason for invalidity: longer path {} found in file {}'.format(path, file_name))
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment