A flake8 extension that checks for catch-all except statements
13.99 KB
built 2026-10-17 09:20:14 GMT
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.
Dependencies
13 totalRequires8
- python(abi) = 3.15
- python3dist(flake8)
- python3dist(pycodestyle)
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PartialHardlinkSets) <= 4.0.4-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides5
- python-flake8-blind-except = 0.2.1-11.fc45
- python3-flake8-blind-except = 0.2.1-11.fc45
- python3.15-flake8-blind-except = 0.2.1-11.fc45
- python3.15dist(flake8-blind-except) = 0.2.1
- python3dist(flake8-blind-except) = 0.2.1
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
13
Files 1–13 of 13
Component of
buildroots that installed this RPMNo Buildroots
