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.
start()
1 parent 778c6db commit 0ac495dCopy full SHA for 0ac495d
interactions/client/bot.py
@@ -139,6 +139,8 @@ def start(self) -> None:
139
self._loop.run_until_complete(self._ready())
140
except (CancelledError, Exception) as e:
141
raise e from e
142
+ except KeyboardInterrupt:
143
+ log.error("KeyboardInterrupt detected, shutting down the bot.")
144
145
def __register_events(self) -> None:
146
"""Registers all raw gateway events to the known events."""
0 commit comments