Skip to content

Commit 4eb8965

Browse files
committed
fix(agentgateway): document httpx fragment skip (py-el-02)
1 parent 28c63d8 commit 4eb8965

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/sap_cloud_sdk/agentgateway

src/sap_cloud_sdk/agentgateway/_lob.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)