Commit ee627190 by Adam Palay

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

parent 7ff4397e
...@@ -38,6 +38,8 @@ def yield_dynamic_descriptor_descendents(descriptor, module_creator): ...@@ -38,6 +38,8 @@ def yield_dynamic_descriptor_descendents(descriptor, module_creator):
def get_dynamic_descriptor_children(descriptor): def get_dynamic_descriptor_children(descriptor):
if descriptor.has_dynamic_children(): if descriptor.has_dynamic_children():
module = module_creator(descriptor) module = module_creator(descriptor)
if module is None:
return []
return module.get_child_descriptors() return module.get_child_descriptors()
else: else:
return descriptor.get_children() return descriptor.get_children()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment