python3-flake8-blind-except

flake8 extension that checks for blind, catch-all except

Description

A flake8 extension that checks for blind, catch-all except: and except Exception: statements.

As of pycodestyle 2.1.0, "E722 do not use bare except, specify exception instead" is built-in. However, bare Exception and BaseException are still allowed. This extension flags them as B902.

Using except without explicitly specifying which exceptions to catch is generally considered bad practice, since it catches system signals like SIGINT. You probably want to handle system interrupts differently than exceptions occurring in your code.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/elijahandrews/flake8-blind-except


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-flake8-blind-except