Log when a KeyboardInterrupt is met in Client.run

This commit is contained in:
Rapptz 2017-05-25 21:30:22 -04:00
parent e1263a585a
commit 497be35d5f

View File

@ -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: