mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
fix: StatefulProxyClient.clear() no longer causes KeyError on session teardown (#4328)
This commit is contained in:
parent
6429909f05
commit
222742a737
1 changed files with 1 additions and 1 deletions
|
|
@ -1230,7 +1230,7 @@ class StatefulProxyClient(ProxyClient[ClientTransportT]):
|
|||
self._caches[session] = proxy_client
|
||||
|
||||
async def _on_session_exit():
|
||||
self._caches.pop(session)
|
||||
self._caches.pop(session, None)
|
||||
logger.debug(f"{proxy_client} will be disconnect")
|
||||
# This callback runs while the server session's exit stack is
|
||||
# unwinding, which usually happens because the owning task is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue