Skip to content

Uncatchable Exception in Select Statement #13

@abair

Description

@abair

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/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.11/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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions