Skip to content

The agent that grows with you

fix(bedrock): log the swallowed boto3 lazy-install failure instead of passing silently

kshitijk4poora4f34b90c635
diff --git a/agent/bedrock_adapter.py b/agent/bedrock_adapter.py
index c328b487f0d..017af30c3ab 100644
--- a/agent/bedrock_adapter.py
+++ b/agent/bedrock_adapter.py
@@ -31,8 +31,8 @@ try:
# ---------------------------------------------------------------------------
from tools.lazy_deps import ensure
ensure("provider.bedrock", prompt=False)
-except Exception:
- pass # let downstream imports surface the real error
+except Exception as exc: # downstream imports surface the real error
+ logger.warning("boto3 lazy install did not complete: %s", exc)
_bedrock_runtime_client_cache: Dict[str, Any] = {}