Skip to content

Commit

Permalink
ValidationError if package not found
Browse files Browse the repository at this point in the history
  • Loading branch information
fomars committed Apr 26, 2018
1 parent b043733 commit b153f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yandextank/validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b153f74

Please sign in to comment.