.. _too-many-try-statements: too-many-try-statements / W0717 =============================== **Message emitted:** ``%s`` **Description:** *Try clause contains too many statements.* **Problematic code:** .. literalinclude:: /data/messages/t/too-many-try-statements/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/t/too-many-try-statements/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/t/too-many-try-statements/pylintrc :language: ini .. note:: This message is emitted by the optional :ref:`'broad_try_clause'` checker, which requires the ``pylint.extensions.broad_try_clause`` plugin to be loaded. Created by the `broad_try_clause `__ checker.