Skip to content

Commit f52a3d5

Browse files
committed
Fixed mypy.
Signed-off-by: Pavel Kirilin <win10@list.ru>
1 parent 6da5847 commit f52a3d5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

taskiq_aiohttp/initializer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ async def startup(state: TaskiqState) -> None:
5151
app_runner = web.AppRunner(local_app)
5252
await app_runner.setup()
5353

54+
if app_runner.server is None:
55+
raise ValueError("Cannot construct aiohttp app to mock requests")
56+
5457
# Creating mocked request
5558
handler = RequestHandler(app_runner.server, loop=loop)
5659
handler.transport = asyncio.Transport()

0 commit comments

Comments
 (0)