PyCQA / bandit

Bandit is a tool designed to find common security issues in Python code.
https://bandit.readthedocs.io
Apache License 2.0
6.52k stars 612 forks source link

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

Closed mportesdev closed 2 years ago

mportesdev commented 2 years ago

Pull request #913 didn't adjust the arguments to be interpolated in the logging message (arguments do not match the %s placeholders). As a result, there is an unhandled TypeError and failed string interpolation. This change fixes that.

Before:

image

After:

image