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

Fix issue #197: Ctrl+C interrupt no longer causes Traceback error when slideshow is cleared #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CullenLYe
Copy link
Contributor

In response to Issue#197:
When a slideshow is running, if the user holds down Ctrl+C (Keyboard Interrupt) and then proceeds to clear the slideshow using the -c flag, a Traceback occurs and is printed to the Terminal:
Screenshot 2024-04-03 105422

I added a try/except block to catch when a Keyboard Interrupt occurs. Now, if the user clears the slideshow, no Traceback is printed:
Screenshot 2024-04-03 105751

@sylveon
Copy link
Collaborator

sylveon commented Apr 14, 2024

I'm not sure this fix gives the intended behavior here. I believe the user wants the slideshow to keep going, while this change will make it stop. A more ideal resolution is probably to somehow detach the worker process from the terminal so that it doesn't get input anymore.

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

Successfully merging this pull request may close these issues.

None yet

2 participants