Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KADMOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LR-FPP-MDO
KADMOS
Commits
8a3250f9
Commit
8a3250f9
authored
7 years ago
by
imcovangent
Browse files
Options
Downloads
Patches
Plain Diff
Added AssertionError raising for check of invalid leaf nodes.
Former-commit-id: 7582a967e84eec1713d91c78c004de8ea2b913da
parent
33cdd29f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kadmos/graph/graph_kadmos.py
+3
-0
3 additions, 0 deletions
kadmos/graph/graph_kadmos.py
with
3 additions
and
0 deletions
kadmos/graph/graph_kadmos.py
+
3
−
0
View file @
8a3250f9
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment