Skip to content

Commit

Permalink
Pass correct number of arguments to match the %s placeholders. (#934)
Browse files Browse the repository at this point in the history
Fix arguments to LOG.error

Pass correct number of arguments to match the `%s` placeholders.
  • Loading branch information
mportesdev authored Jul 14, 2022
1 parent 84edd09 commit fe055fd
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit fe055fd

Please sign in to comment.