From b153f741e0a15c2b898671c9a37cdd26f6ad947f Mon Sep 17 00:00:00 2001 From: fomars Date: Fri, 27 Apr 2018 00:50:56 +0300 Subject: [PATCH] ValidationError if package not found --- yandextank/validator/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yandextank/validator/validator.py b/yandextank/validator/validator.py index 7c7b37157..ac5185e27 100644 --- a/yandextank/validator/validator.py +++ b/yandextank/validator/validator.py @@ -54,7 +54,7 @@ def load_plugin_schema(package): if 'aggregator' in package.lower(): logger.warning('Plugin Aggregator is now deprecated, please remove this section from your config') return load_yaml_schema(pkg_resources.resource_filename('yandextank.aggregator', 'config/schema.yaml')) - raise + raise ValidationError({'package': ['No module named {}'.format(package)]}) def load_schema(directory, filename=None):