Skip to content

Commit bf21978

Browse files
committed
Fix set_task_push_notification_config integration test
1 parent c73080d commit bf21978

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/a2a/server/request_handlers/rest_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def get_push_notification(
192192
)
193193

194194
@validate(
195-
lambda self: self.agent_card.capabilities.pushNotifications,
195+
lambda self: self.agent_card.capabilities.push_notifications,
196196
'Push notifications are not supported by the agent',
197197
)
198198
async def set_push_notification(

src/a2a/utils/error_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ async def wrapper(*args: Any, **kwargs: Any) -> Response:
7171
return JSONResponse(
7272
content={'message': error.root.message}, status_code=http_code
7373
)
74-
except Exception:
75-
logger.log(logging.ERROR, 'Unknown error occurred')
74+
except Exception as e:
75+
logger.log(logging.ERROR, f'Unknown error occurred {e}')
7676
return JSONResponse(
7777
content={'message': 'unknown exception'}, status_code=500
7878
)

0 commit comments

Comments
 (0)