mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 08:49:48 +00:00
Change loop sentinel error to not use a tuple
This was an unintentional error
This commit is contained in:
parent
1fba54ce97
commit
575eacb1bf
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user