Name: | python3-flake8-blind-except |
---|---|
Version: | 0.2.1 |
Release: | 2.el9 |
Architecture: | noarch |
Group: | Unspecified |
Size: | 10260 |
License: | MIT |
RPM: | python3-flake8-blind-except-0.2.1-2.el9.noarch.rpm |
Source RPM: | python-flake8-blind-except-0.2.1-2.el9.src.rpm |
Build Date: | Wed Jun 26 2024 |
Build Host: | build-ol9-x86_64.oracle.com |
Vendor: | Oracle America |
URL: | https://github.com/elijahandrews/flake8-blind-except |
Summary: | A flake8 extension that checks for catch-all except statements |
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. |
- Define _description variable to reduce duplication - Drop macro from URL to improve ergonomics - Enable doctest check using pytest
- Initial package (rhbz#2141866)