Add support for serverside oauth (#255)
Co-authored-by: David Soria Parra <davidsp@anthropic.com> Co-authored-by: Basil Hosmer <basil@anthropic.com> Co-authored-by: ihrpr <inna@anthropic.com>
This commit is contained in:
parent
82bd8bc1d9
commit
2210c1be18
1 changed files with 4120 additions and 22 deletions
|
|
@ -576,14 +576,12 @@ class Server(Generic[LifespanResultT]):
|
|||
assert type(notify) in self.notification_handlers
|
||||
|
||||
handler = self.notification_handlers[type(notify)]
|
||||
logger.debug(
|
||||
f"Dispatching notification of type " f"{type(notify).__name__}"
|
||||
)
|
||||
logger.debug(f"Dispatching notification of type {type(notify).__name__}")
|
||||
|
||||
try:
|
||||
await handler(notify)
|
||||
except Exception as err:
|
||||
logger.error(f"Uncaught exception in notification handler: " f"{err}")
|
||||
logger.error(f"Uncaught exception in notification handler: {err}")
|
||||
|
||||
|
||||
async def _ping_handler(request: types.PingRequest) -> types.ServerResult:
|
||||
|
|
|
|||
Loading…
Reference in a new issue