Skip to content

Commit 81e61b8

Browse files
committed
Merge branch 'fix/client-run' of https://github.com/DA-344/pycord into fix/client-run
2 parents cb05d05 + e60bda3 commit 81e61b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

discord/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,15 @@ def _handle_ready(self) -> None:
327327
def loop(self) -> asyncio.AbstractEventLoop:
328328
"""The event loop that the client uses for asynchronous operations."""
329329
if self._loop is MISSING:
330-
raise RuntimeError('loop is not set')
330+
raise RuntimeError("loop is not set")
331331
return self._loop
332332

333333
@loop.setter
334334
def loop(self, value: asyncio.AbstractEventLoop) -> None:
335335
if not isinstance(value, asyncio.AbstractEventLoop):
336-
raise TypeError(f'expected a AbstractEventLoop object, got {value.__class__.__name__!r} instead')
336+
raise TypeError(
337+
f"expected a AbstractEventLoop object, got {value.__class__.__name__!r} instead"
338+
)
337339
self._loop = value
338340

339341
@property

0 commit comments

Comments
 (0)