fix: lifespan handler must accept app argument from FastMCP
This commit is contained in:
1 parent
c7c40be257
commit
3da2a9f63c
1 file changed
+1
-1
+1
-1
@@ -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 {}
|
||||
|
||||
Reference in new issue
Block a user