We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f6358 commit 4be31e3Copy full SHA for 4be31e3
discord/client.py
@@ -264,10 +264,10 @@ def __init__(
264
self.loop = asyncio.new_event_loop()
265
try:
266
asyncio.set_event_loop(self.loop)
267
- except Exception:
268
- # If for some reason setting the loop fails, continue
+ except Exception as exc:
+ # If for some reason setting the loop fails, log the exception and continue
269
# using the locally created loop without setting it.
270
- pass
+ logging.exception("Failed to set event loop: %s", exc)
271
self._listeners: dict[str, list[tuple[asyncio.Future, Callable[..., bool]]]] = (
272
{}
273
)
0 commit comments