repos: Don't fail if addons are not preset in config

This commit is contained in:
Ivan A. Melnikov 2023-12-05 13:55:08 +04:00
parent 8388c0627b
commit 51aa8967d0

View File

@ -821,7 +821,7 @@ def load_repos(config):
LOG.info('Loading %s', name)
repos[name] = Repository.load_from_config(name, cfg)
for name, cfg in config['addons'].items():
for name, cfg in config.get('addons', {}).items():
LOG.info('Loading %s', name)
base = repos[cfg['base']]
addon = Repository.load_from_config(name, cfg)