mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 08:35:53 +00:00
Log when a KeyboardInterrupt is met in Client.run
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user