Skip to content
Snippets Groups Projects
Commit e7a143cc authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

DOC: add code style comments

parent fb7019ce
No related branches found
No related tags found
2 merge requests!95DOC: Added CITATION.cff to the list of files in the release guide where the...,!94Get parents recursively
Pipeline #33834 passed
......@@ -3693,6 +3693,7 @@ class Container(list):
for p in e.get_properties():
if p.id is None:
if p.name is not None:
# TODO using try except for normal execution flow is bad style
try:
w = self.get_entity_by_name(p.name)
p._wrap(w)
......@@ -3704,6 +3705,7 @@ class Container(list):
for p in e.get_parents():
if p.id is None:
if p.name is not None:
# TODO using try except for normal execution flow is bad style
try:
p._wrap(self.get_entity_by_name(p.name))
except KeyError:
......
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