A flake8 extension that checks for catch-all except statements
built by guoguo
completed Sat, 17 Oct 2026 09:20:28 UTC
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.
RPMs
2 files, 2 archessrc
noarch
Logs
noarch
Changelog
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 0.2.1-10 - Rebuilt for Python 3.15 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.2.1-8 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.2.1-7 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 0.2.1-5 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild