[ 源代码: flake8-blind-except ]
软件包:python3-flake8-blind-except(0.2.1-1)
python3-flake8-blind-except 的相关链接
Debian 的资源:
下载源码包 flake8-blind-except:
- [flake8-blind-except_0.2.1-1.dsc]
- [flake8-blind-except_0.2.1.orig.tar.gz]
- [flake8-blind-except_0.2.1-1.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [github.com]
相似软件包:
flake8 extension that checks for blind, catch-all except
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.