PY3.W0715
Raising format tuple
Used when passing multiple arguments to an exception constructor, the first of them a string literal containing what appears to be placeholders intended for formatting.
Noncompliant Code:
Copy
raise RuntimeError("This looks wrong %s %s", ("a", "b"))
Compliant Code:
Copy
raise RuntimeError("This looks wrong %s %s" % ("a", "b"))