From aad30a058711a89dd48615391404b902fde07f72 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 7 Nov 2021 18:15:00 +0100 Subject: [PATCH] Check Tags config onmy when it is configured as internal plugin --- sima/plugins/internal/tags.py | 2 -- sima/utils/configtest.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5