A flake8 extension that checks for catch-all except statements
28.88 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
12 totalRequires11
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(pycodestyle)
- python3dist(pytest)
- python3dist(setuptools) >= 40.8
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides1
- python3-flake8-blind-except = 0.2.1-11.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| flake8-blind-except-0.2.1.tar.gz | 3.15 KB |
| python-flake8-blind-except.spec | 3.12 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
