mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Log when a KeyboardInterrupt is met in Client.run
This commit is contained in:
parent
e1263a585a
commit
497be35d5f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user