Skip to content

Commit 5293093

Browse files
committed
fix: lint
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
1 parent 9492a0d commit 5293093

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/a2a/client/auth/interceptor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ async def intercept(
4949
scheme_def_union = agent_card.securitySchemes.get(
5050
scheme_name
5151
)
52+
if not scheme_def_union:
53+
continue
5254
scheme_def = scheme_def_union.root
55+
5356
headers = http_kwargs.get('headers', {})
57+
5458
match scheme_def:
5559
# Case 1a: HTTP Bearer scheme with an if guard
5660
case HTTPAuthSecurityScheme() if (

0 commit comments

Comments
 (0)