aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-25 21:30:22 -0400
committerRapptz <[email protected]>2017-05-25 21:30:22 -0400
commit497be35d5fe06c3e0023fa08e75c7d883a6409ed (patch)
tree8fe8f2bacf3c4e73c375c1fba8f18edbfda4a277
parentMention User.avatar_url change in migration page. (diff)
downloaddiscord.py-497be35d5fe06c3e0023fa08e75c7d883a6409ed.tar.xz
discord.py-497be35d5fe06c3e0023fa08e75c7d883a6409ed.zip
Log when a KeyboardInterrupt is met in Client.run
-rw-r--r--discord/client.py2
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: