Skip to content

Commit 6bc8842

Browse files
dmandarholtskinner
andauthored
Update src/a2a/client/auth/interceptor.py
Co-authored-by: Holt Skinner <[email protected]>
1 parent d94df5a commit 6bc8842

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/a2a/client/auth/interceptor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ async def intercept(
3333
agent_card: AgentCard | None,
3434
context: ClientCallContext | None,
3535
) -> tuple[dict[str, Any], dict[str, Any]]:
36-
if (
37-
not agent_card
38-
or not agent_card.security
39-
or not agent_card.securitySchemes
40-
):
36+
if not all((agent_card, agent_card.security, agent_card.securitySchemes)):
4137
return request_payload, http_kwargs
4238

4339
for requirement in agent_card.security:

0 commit comments

Comments
 (0)