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.
Problematic code:
import logging
logging.warning("Here is a variable: %", my_var) # [logging-format-truncated]
Correct code:
import logging
logging.warning("Here is a variable: %s", my_var)
Created by the logging checker.