> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# python-swallowed-exception

> A Python except block only passes, so the failure is dropped silently.

## What it flags

`except Exception` or `except BaseException` (alone or in a tuple) whose body is only `pass` or `...` makes every failure disappear.

## How to review or fix

Narrow types such as `FileNotFoundError` or `KeyError` with `pass` are accepted as deliberate.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "python-swallowed-exception": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.