Skip to content

The agent engineering platform.

chore[langchain]: fix broad base except in crawler.py (#31941)

Michael Lia8998a1f57bd
diff --git a/libs/langchain/langchain/chains/natbot/crawler.py b/libs/langchain/langchain/chains/natbot/crawler.py
index 75bfd75441..ab5348d40c 100644
--- a/libs/langchain/langchain/chains/natbot/crawler.py
+++ b/libs/langchain/langchain/chains/natbot/crawler.py
@@ -271,7 +271,7 @@ class Crawler:
cursor = layout_node_index.index(index)
# TODO replace this with proper cursoring, ignoring the fact this is
# O(n^2) for the moment
- except: # noqa: E722
+ except ValueError:
continue
if node_name in black_listed_elements: