abhisharma404 / vault

swiss army knife for hackers
https://abhisharma404.github.io/vault
MIT License
513 stars 95 forks source link

Fixes #94 #99

Open RC-Rajat opened 4 years ago

RC-Rajat commented 4 years ago

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 commented 4 years ago

Sorry,Forgot to remove 'import signal'

mzfr commented 4 years ago

@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