mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
refactor(logging): add explicit error log message (#576)
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
parent
6d1d7f2d9e
commit
eec8e4dd60
@ -128,6 +128,7 @@ class TavilySearchWithImages(TavilySearchResults): # type: ignore[override, ove
|
||||
self.include_image_descriptions,
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error("Tavily search returned error: {}".format(e))
|
||||
return repr(e), {}
|
||||
cleaned_results = self.api_wrapper.clean_results_with_images(raw_results)
|
||||
logger.debug(
|
||||
@ -154,6 +155,7 @@ class TavilySearchWithImages(TavilySearchResults): # type: ignore[override, ove
|
||||
self.include_image_descriptions,
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error("Tavily search returned error: {}".format(e))
|
||||
return repr(e), {}
|
||||
cleaned_results = self.api_wrapper.clean_results_with_images(raw_results)
|
||||
logger.debug(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user