File tree Expand file tree Collapse file tree
src/sap_cloud_sdk/agentgateway Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -396,6 +396,8 @@ async def get_mcp_tools_lob(
396396 len (server_tools ),
397397 fragment_name ,
398398 )
399+ # intentional: fragment failure must not abort remaining fragments
400+ # (HTTPStatusError: 403 → warning + continue; other status → exception log + skip)
399401 except httpx .HTTPStatusError as exc :
400402 if exc .response .status_code == 403 :
401403 logger .warning (
@@ -405,12 +407,12 @@ async def get_mcp_tools_lob(
405407 fragment_name ,
406408 )
407409 continue
408- # intentional: fragment failure must not abort remaining fragments
409410 logger .exception (
410411 "Failed to load tools from fragment '%s' — skipping" ,
411412 fragment_name ,
412413 )
413414 # intentional: fragment failure must not abort remaining fragments
415+ # (unexpected errors → exception log + skip)
414416 except Exception :
415417 logger .exception (
416418 "Failed to load tools from fragment '%s' — skipping" ,
You can’t perform that action at this time.
0 commit comments