Skip to content
RED SAG Skills
hard20 pts · first answer countspythonpython-basicserror-handling

A loop that ignores Ctrl+C

This polling script cannot be stopped with Ctrl+C. Why?

while True:
    try:
        poll_api()
    except:
        pass
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions