Merge "Adds simple handler to provide failed line numbers"

This commit is contained in:
Jenkins 2017-08-31 22:19:40 +00:00 committed by Gerrit Code Review
commit 120b24295d
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ class BanditConfig(object):
try:
self._config = yaml.safe_load(f)
self.validate(config_file)
except yaml.YAMLError:
except yaml.YAMLError as err:
LOG.error(err)
raise utils.ConfigError("Error parsing file.", config_file)
# valid config must be a dict