From: kaliko Date: Sun, 7 Nov 2021 17:15:00 +0000 (+0100) Subject: Check Tags config onmy when it is configured as internal plugin X-Git-Tag: 0.18.0~10 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=aad30a058711a89dd48615391404b902fde07f72;p=mpd-sima.git Check Tags config onmy when it is configured as internal plugin --- diff --git a/sima/plugins/internal/tags.py b/sima/plugins/internal/tags.py index 32021a1..82abf7f 100644 --- a/sima/plugins/internal/tags.py +++ b/sima/plugins/internal/tags.py @@ -44,12 +44,10 @@ def control_config(tags_config): log.warning('Found no config for Tags plugin! ' 'Need at least "filter" or a supported tag') log.info('Supported Tags are : %s', ', '.join(sup_tags)) - # raise PluginException('plugin misconfiguration') return False if config_tags.difference(sup_tags): log.error('Found unsupported tag in config: %s', config_tags.difference(sup_tags)) - # raise PluginException('plugin misconfiguration') return False return True diff --git a/sima/utils/configtest.py b/sima/utils/configtest.py index a726d17..82b49c4 100644 --- a/sima/utils/configtest.py +++ b/sima/utils/configtest.py @@ -44,7 +44,8 @@ def config_test(config): except PlayerError as err: print(err, file=sys.stderr) sys.exit(1) - tags_config_test(cli, config) + if 'Tags' in config.get('sima', 'internal'): + tags_config_test(cli, config) # VIM MODLINE