.. _duplicate-except: duplicate-except / W0705 ======================== **Message emitted:** ``Catching previously caught exception type %s`` **Description:** *Used when an except catches a type that was already caught by a previous handler.* **Problematic code:** .. literalinclude:: /data/messages/d/duplicate-except/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/d/duplicate-except/good.py :language: python Created by the `exceptions `__ checker.