Skip to content

Commit 9193208

Browse files
fix: Remove logger error from init on rest_adapter and jsonrpc_app (#439)
1 parent 598d8a1 commit 9193208

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/a2a/server/apps/jsonrpc/jsonrpc_app.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,6 @@ def __init__( # noqa: PLR0913
219219
extended_agent_card=extended_agent_card,
220220
extended_card_modifier=extended_card_modifier,
221221
)
222-
if (
223-
self.agent_card.supports_authenticated_extended_card
224-
and self.extended_agent_card is None
225-
and self.extended_card_modifier is None
226-
):
227-
logger.error(
228-
'AgentCard.supports_authenticated_extended_card is True, but no extended_agent_card was provided. The /agent/authenticatedExtendedCard endpoint will return 404.'
229-
)
230222
self._context_builder = context_builder or DefaultCallContextBuilder()
231223

232224
def _generate_error_response(

src/a2a/server/apps/rest/rest_adapter.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,6 @@ def __init__( # noqa: PLR0913
9494
self.handler = RESTHandler(
9595
agent_card=agent_card, request_handler=http_handler
9696
)
97-
if (
98-
self.agent_card.supports_authenticated_extended_card
99-
and self.extended_agent_card is None
100-
and self.extended_card_modifier is None
101-
):
102-
logger.error(
103-
'AgentCard.supports_authenticated_extended_card is True, but no extended_agent_card was provided. The /agent/authenticatedExtendedCard endpoint will return 404.'
104-
)
10597
self._context_builder = context_builder or DefaultCallContextBuilder()
10698

10799
@rest_error_handler

0 commit comments

Comments
 (0)