1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-11 16:29:49 +00:00

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

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