vetkit.py.quality.broad-except-pass
except Exception: pass silently discards every error raised in the try block, which hides real failures.
Last updated:
Suite: Code quality
python
except Exception: pass silently discards every error raised in the try block, which hides real failures.
Category: QUALITY · Engine rule severity: INFO
How to fix it
Catch the specific exceptions you expect and log or handle them; use contextlib.suppress(SpecificError) when ignoring is intentional.
References
Source: packages/engine/rules/quality/python.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.