#887105 RFP: python3-flake8-blind-except -- A flake8 extension that checks for blind, catch-all except statements

#887105#5
Date:
2018-01-13 21:32:44 UTC
From:
To:
* Package name    : python3-flake8-blind-except
  Version         : 0.1.1
  Upstream Author : Elijah Andrews
* URL             : https://github.com/elijahandrews/flake8-blind-except
* License         : MIT https://github.com/elijahandrews/flake8-blind-except/blob/master/LICENSE
  Programming Lang: Python
  Description     : A flake8 extension that checks for blind, catch-all except statements

A flake8 extension that checks for blind, catch-all except: statements.

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 occuring in your code.

It's also usually better style to have many small try-except blocks catching specific exceptions instead of a giant try: block with a catch-all except: at the bottom. It's also nicer to your fellow programmers to be a bit more specific about what exceptions they can expect in specific parts of the code, and what the proper course of action is when they occur.

#887105#12
Date:
2018-01-14 04:14:01 UTC
From:
To:
https://github.com/elijahandrews/flake8-blind-except/pull/10

has a preliminary debian package directory that successfully builds a
package
(assuming you've got all the prerequisites, see blocking bugs )

Hope this helps
Jeff Cliff

#887105#17
Date:
2022-07-03 20:07:42 UTC
From:
To:
Implemented with #992366.