The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: raise_for_status logic missing in async _fetch of WebBaseLoader (#21948)
Kefan You24b5c27bb167
diff --git a/libs/community/langchain_community/document_loaders/web_base.py b/libs/community/langchain_community/document_loaders/web_base.pyindex b07f904c5f..b925f792e5 100644--- a/libs/community/langchain_community/document_loaders/web_base.py+++ b/libs/community/langchain_community/document_loaders/web_base.py@@ -134,6 +134,8 @@ class WebBaseLoader(BaseLoader):ssl=None if self.session.verify else False,cookies=self.session.cookies.get_dict(),) as response:+ if self.raise_for_status:+ response.raise_for_status()return await response.text()except aiohttp.ClientConnectionError as e:if i == retries - 1: