# default_retry_on

> **Function** in `langchain`

📖 [View in docs](https://reference.langchain.com/python/langchain/agents/middleware/_retry/default_retry_on)

Return whether an exception should be retried by default.

## Signature

```python
default_retry_on(
    exc: BaseException,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/84ba23c414eca6bf6f6ebd1394a3006378113540/libs/langchain_v1/langchain/agents/middleware/_retry.py#L70)