# Exception Chaining (raise … from)

say it: **“RAYZ FRUM”** **/ˈreɪz ˈfrʌm/** or **“ik-SEP-shun CHAY-ning”** **/ɪkˈsɛpʃən ˈtʃeɪnɪŋ/**

Raising a clearer error while keeping the original attached (raise ... from).

## What is **exception chaining**?

**Exception chaining** (`raise … from`) raises a new, clearer error while keeping the original one attached, so the traceback shows both.

```python
def load_price(text):
    try:
        return float(text)
    except ValueError as error:
        raise ValueError(f"Bad price in file: {text!r}") from error
```

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/exception-chaining-raise-from
