From d6a5f4e2cc95c87ee10eb41e2232ebd8a899a299 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 19 Apr 2024 11:00:19 +0100 Subject: [PATCH] dont call async --- ipserv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipserv.py b/ipserv.py index 6a362ea..c1f789e 100644 --- a/ipserv.py +++ b/ipserv.py @@ -10,7 +10,7 @@ from contextlib import asynccontextmanager logging.basicConfig(level=logging.INFO) -@asynccontextmanager() +@asynccontextmanager async def lifespan(_app: FastAPI): async with aiohttp.ClientSession( "https://ip.shronk.tech",