We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6da5847 commit f52a3d5Copy full SHA for f52a3d5
1 file changed
taskiq_aiohttp/initializer.py
@@ -51,6 +51,9 @@ async def startup(state: TaskiqState) -> None:
51
app_runner = web.AppRunner(local_app)
52
await app_runner.setup()
53
54
+ if app_runner.server is None:
55
+ raise ValueError("Cannot construct aiohttp app to mock requests")
56
+
57
# Creating mocked request
58
handler = RequestHandler(app_runner.server, loop=loop)
59
handler.transport = asyncio.Transport()
0 commit comments