Skip to content

Commit

Permalink
clarify exceptions in README
Browse files Browse the repository at this point in the history
- add missing exception
- add module name for import
  • Loading branch information
vpoulailleau authored and deedy5 committed Jan 21, 2025
1 parent f8d4079 commit 1bc204f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,20 @@ export DDGS_PROXY="socks5h://user:password@geo.iproyal.com:32325"

## Exceptions

```python
from duckduckgo_search.exceptions import (
ConversationLimitException,
DuckDuckGoSearchException,
RatelimitException,
TimeoutException,
)
```

Exceptions:
- `DuckDuckGoSearchException`: Base exception for duckduckgo_search errors.
- `RatelimitException`: Inherits from DuckDuckGoSearchException, raised for exceeding API request rate limits.
- `TimeoutException`: Inherits from DuckDuckGoSearchException, raised for API request timeouts.

- `ConversationLimitException`: Inherits from DuckDuckGoSearchException, raised for conversation limit during API requests to AI endpoint.

[Go To TOP](#TOP)

Expand Down

0 comments on commit 1bc204f

Please sign in to comment.