diff --git a/bandit/core/config.py b/bandit/core/config.py index cdbc8069d..7c259bcc0 100644 --- a/bandit/core/config.py +++ b/bandit/core/config.py @@ -43,7 +43,8 @@ def __init__(self, config_file=None): if config_file.endswith(".toml"): if toml is None: raise utils.ConfigError( - "toml parser not available, reinstall with toml extra" + "toml parser not available, reinstall with toml extra", + config_file, ) try: