diff options
| author | Rapptz <[email protected]> | 2017-05-25 21:30:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-25 21:30:22 -0400 |
| commit | 497be35d5fe06c3e0023fa08e75c7d883a6409ed (patch) | |
| tree | 8fe8f2bacf3c4e73c375c1fba8f18edbfda4a277 | |
| parent | Mention User.avatar_url change in migration page. (diff) | |
| download | discord.py-497be35d5fe06c3e0023fa08e75c7d883a6409ed.tar.xz discord.py-497be35d5fe06c3e0023fa08e75c7d883a6409ed.zip | |
Log when a KeyboardInterrupt is met in Client.run
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index 1309fa8b..399cc7b4 100644 --- a/discord/client.py +++ b/discord/client.py @@ -537,7 +537,7 @@ class Client: try: loop.run_forever() except KeyboardInterrupt: - pass + log.info('Received signal to terminate bot and event loop.') finally: task.remove_done_callback(stop_loop_on_finish) if is_windows: |