Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.quality.bare-except-pass

A bare except: silently swallows every exception, including KeyboardInterrupt and SystemExit.

Last updated:

Suite: Code quality

python

A bare except: silently swallows every exception, including KeyboardInterrupt and SystemExit.

Category: QUALITY · Engine rule severity: INFO

How to fix it

Catch specific exception types and log or handle them.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

try:
    ...
except:
    pass

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.