Skip to content

Conversation

@RC-Rajat
Copy link

@RC-Rajat RC-Rajat commented Dec 5, 2019

Tried to solve #94 by putting the entire body of code within a try...except block.On keyboard interrupt, The except block displays 'Process Stopped by user'. However,it also gives an Exception and a traceback.To stop that, I redirected stderr to a file 'err.txt'. This makes it such that the user gets a clean response on pressing Ctrl + C.

@RC-Rajat RC-Rajat mentioned this pull request Dec 5, 2019
@RC-Rajat
Copy link
Author

RC-Rajat commented Dec 5, 2019

Sorry,Forgot to remove 'import signal'

@mzfr
Copy link
Collaborator

mzfr commented Dec 7, 2019

@RC-Rajat Thanks for the PR but I don't think putting the entire code in try and catch is the best solution.
We need to handle the threads properly so it would be nice if you can find ways to terminate threads without having to use a dirty approach.

cc: @abhisharma404

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.

2 participants