Skip to content

Commit

Permalink
RatelimitException: add Ratelimit to message
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Apr 2, 2024
1 parent 39ae5c9 commit a2d59e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duckduckgo_search/duckduckgo_search_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def _aget_url(
return cast(bytes, resp.content)
self._exception_event.set()
if resp.status_code in (202, 301, 403):
raise RatelimitException(f"{resp.url} {resp.status_code}")
raise RatelimitException(f"{resp.url} {resp.status_code} Ratelimit")
raise DuckDuckGoSearchException(f"{resp.url} return None. {params=} {data=}")

async def _aget_vqd(self, keywords: str) -> str:
Expand Down

0 comments on commit a2d59e7

Please sign in to comment.