🐛 fix(endpoints.py): add check to skip empty custom_component_dict to prevent potential errors
This commit is contained in:
parent
3170ac665a
commit
4b47f9f196
1 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ def get_all():
|
|||
logger.info(f"Loading {len(custom_component_dicts)} category(ies)")
|
||||
for custom_component_dict in custom_component_dicts:
|
||||
# custom_component_dict is a dict of dicts
|
||||
if not custom_component_dict:
|
||||
continue
|
||||
category = list(custom_component_dict.keys())[0]
|
||||
logger.info(
|
||||
f"Loading {len(custom_component_dict[category])} component(s) from category {category}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue