Change loop sentinel error to not use a tuple

This was an unintentional error
This commit is contained in:
Rapptz 2022-03-16 05:50:28 -04:00
parent 1fba54ce97
commit 575eacb1bf

View File

@ -104,9 +104,9 @@ class _LoopSentinel:
def __getattr__(self, attr: str) -> None: def __getattr__(self, attr: str) -> None:
msg = ( msg = (
'loop attribute cannot be accessed in non-async contexts. ', 'loop attribute cannot be accessed in non-async contexts. '
'Consider using either an asynchronous main function and passing it to asyncio.run or ', 'Consider using either an asynchronous main function and passing it to asyncio.run or '
'using asynchronous initialisation hooks such as Client.setup_hook', 'using asynchronous initialisation hooks such as Client.setup_hook'
) )
raise AttributeError(msg) raise AttributeError(msg)