HomeAITSYS Dev

discord: client: Ignore RuntimeError when calling add_signal_handler() (#673)

Description

discord: client: Ignore RuntimeError when calling add_signal_handler() (#673)

  • When Client.run() is called in a new thread (using threading.Thread), add_signal_handler will raise the following exception:
  • RuntimeError: set_wakeup_fd only works in main thread of the main interpreter
  • We can ignore this as well

Change-Id: Id21beaff59e1450186c4410e1ead41c0f738e01e
Signed-off-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>

Details

Provenance
Sebastiano Barezzi <barezzisebastiano@gmail.com>Authored on Fri, Jan 7, 18:53
GitHubCommitted on Fri, Jan 7, 18:53
Parents
rPYCORD2377a743d61c: Add a cooldown example (#677)
Branches
Unknown
Tags
Unknown