The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix(core): replace bare except with Exception in tracer (#35138)
Luka Aladashvili97ee14c179f7
diff --git a/libs/core/langchain_core/tracers/core.py b/libs/core/langchain_core/tracers/core.pyindex 654a235acb..bbfb5492d8 100644--- a/libs/core/langchain_core/tracers/core.py+++ b/libs/core/langchain_core/tracers/core.py@@ -102,7 +102,7 @@ class _TracerCore(ABC):try:tb = traceback.format_exception(error)return (msg + "\n\n".join(tb)).strip()- except: # noqa: E722+ except Exception:return msgdef _start_trace(self, run: Run) -> Coroutine[Any, Any, None] | None: # type: ignore[return]