logging-format-truncated / E1201#

Message emitted:

Logging format string ends in middle of conversion specifier

Description:

Used when a logging statement format string terminates before the end of a conversion specifier.

Correct code:

import logging

logging.warning("Here is a variable: %s", my_var)

Problematic code:

import logging

logging.warning("Here is a variable: %", my_var)  # [logging-format-truncated]

Created by the logging checker.