Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncatchable Exception in Select Statement #13

Open
abair opened this issue Aug 24, 2023 · 0 comments
Open

Uncatchable Exception in Select Statement #13

abair opened this issue Aug 24, 2023 · 0 comments

Comments

@abair
Copy link
Contributor

abair commented Aug 24, 2023

Even when catching keyboard interrupts, there's an uncaught exception when exiting the program via C^c:

Exception ignored in: <module 'threading' from '/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1583, in _shutdown
    lock.acquire()
KeyboardInterrupt:

I believe this is caused by an exception in the generator cleanup. We need to exit the select statement more gracefully in general. This is just a theory because I'm a little out of my depth here.

Here are two StackOverflow articles that may help explain what's happening:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant