Skip to content
Snippets Groups Projects
Commit ee627190 authored by Adam Palay's avatar Adam Palay
Browse files

check if module created from description is None before looking for its child descriptors

parent 7ff4397e
No related branches found
Tags release-2020-03-03-18.46
No related merge requests found
......@@ -38,6 +38,8 @@ def yield_dynamic_descriptor_descendents(descriptor, module_creator):
def get_dynamic_descriptor_children(descriptor):
if descriptor.has_dynamic_children():
module = module_creator(descriptor)
if module is None:
return []
return module.get_child_descriptors()
else:
return descriptor.get_children()
......
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