.. _broad-except:

broad-except / W0703
====================

**Message emitted:**

Catching too general exception %s

**Description:**

*Used when an except catches a too general exception, possibly burying unrelated errors.*

**Problematic code:**

.. literalinclude:: /data/messages/b/broad-except/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/b/broad-except/good.py
   :language: python



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