fix: lifespan handler must accept app argument from FastMCP

This commit is contained in:
Piers Dawson-Damer committed 2026-02-14 13:33:08 +11:00
1 parent c7c40be257
commit 3da2a9f63c
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ def _format_bytes(n: int) -> str:
@asynccontextmanager
async def app_lifespan():
async def app_lifespan(app):
if not SYNCTHING_API_KEY:
print("WARNING: SYNCTHING_API_KEY is not set. API calls will fail.")
yield {}