Browse Source

Log when a KeyboardInterrupt is met in Client.run

pull/582/head
Rapptz 8 years ago
parent
commit
497be35d5f
  1. 2
      discord/client.py

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

Loading…
Cancel
Save