diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py index 00ec9a5015d..82665e772c5 100644 --- a/aiohttp/helpers.py +++ b/aiohttp/helpers.py @@ -274,7 +274,9 @@ def create_task(coro: Awaitable[_T]) -> 'asyncio.Task[_T]': def get_running_loop() -> asyncio.AbstractEventLoop: loop = asyncio.get_event_loop() if not loop.is_running(): - raise RuntimeError("The object should be created from async function") + raise RuntimeError( + "The object should be created within an async function" + ) return loop