Skip to content

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

Open
CullenLYe wants to merge 1 commit into
LazoVelko:masterfrom
CullenLYe:fix-issue-197
Open

Fix issue #197: Ctrl+C interrupt no longer causes Traceback error when slideshow is cleared#212
CullenLYe wants to merge 1 commit into
LazoVelko:masterfrom
CullenLYe:fix-issue-197

Conversation

@CullenLYe

Copy link
Copy Markdown
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

sylveon commented Apr 14, 2024

Copy link
Copy Markdown
Collaborator

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

2 participants