QUAL007warningPro

broad-exception

Catching all exceptions hides bugs and makes debugging hard

Applies to: Go, JAVA, JavaScript, Python, Ruby, Rust, TypeScript

Why this matters

When you catch Exception or use bare except:, you catch everything including KeyboardInterrupt, SystemExit, and programming errors like NameError. This hides bugs and makes debugging very difficult. Catch specific exceptions.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, QUAL007 includedstablestack explain QUAL007

QUAL007 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: QUAL007