Open RC-Rajat opened 4 years ago
Sorry,Forgot to remove 'import signal'
@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
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.