https://bugzilla.redhat.com/show_bug.cgi?id=2141866
Bug ID: 2141866
Summary: Review Request: python-flake8-blind-except - A flake8
extension that checks for catch-all except statements
Product: Fedora
Version: rawhide
Hardware: All
OS: Linux
Status: NEW
Component: Package Review
Severity: medium
Priority: medium
Assignee: nobody(a)fedoraproject.org
Reporter: logans(a)cottsay.net
QA Contact: extras-qa(a)fedoraproject.org
CC: package-review(a)lists.fedoraproject.org
Target Milestone: ---
Classification: Fedora
Spec URL:
https://cottsay.fedorapeople.org/python-flake8-blind-except/python-flake8...
SRPM URL:
https://cottsay.fedorapeople.org/python-flake8-blind-except/python-flake8...
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.
Fedora Account System Username: cottsay
Target branches: f36 f37 epel9
Koji scratch build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=94030751
Thanks!
--
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2141866