From 575eacb1bf6cc59998bec5181e7b46afeb246527 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 16 Mar 2022 05:50:28 -0400 Subject: [PATCH] Change loop sentinel error to not use a tuple This was an unintentional error --- discord/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/client.py b/discord/client.py index 9d972b9df..e8d19024c 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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)