langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Fix NoneType has no len() in DDG tool

Open Dianliang233 opened this issue 1 year ago • 0 comments

Per https://github.com/deedy5/duckduckgo_search/blob/46ac914daa614843cfa2ee3dd4663a5862e775a2/duckduckgo_search/ddg.py#L109, ddg function actually returns None when there is no result.

Dianliang233 avatar Apr 22 '23 01:04 Dianliang233