Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass correct number of arguments to match the %s placeholders. #934

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions bandit/core/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@ def _parse_file(self, fname, fdata, new_files_list):
new_files_list.remove(fname)
except Exception as e:
LOG.error(
"Exception occurred when executing tests against %s.",
fname,
fname,
"Exception occurred when executing tests against %s.", fname
)
if not LOG.isEnabledFor(logging.DEBUG):
LOG.error('Run "bandit --debug %s" to see the full traceback.')
LOG.error(
'Run "bandit --debug %s" to see the full traceback.', fname
)

self.skipped.append((fname, "exception while scanning file"))
new_files_list.remove(fname)
Expand Down