Pass correct number of arguments to match the `%s` placeholders.
Fix arguments to LOG.error
Pass correct number of arguments to match the `%s` placeholders.
@@ -331,12 +331,12 @@ class BanditManager:
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)
