.. _logging-format-truncated:

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:**

.. literalinclude:: /data/messages/l/logging-format-truncated/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/l/logging-format-truncated/good.py
   :language: python



Created by the `logging <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/logging.py>`__ checker.