Browse Source

Change loop sentinel error to not use a tuple

This was an unintentional error
pull/7704/head
Rapptz 3 years ago
parent
commit
575eacb1bf
  1. 6
      discord/client.py

6
discord/client.py

@ -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…
Cancel
Save