wakepy
wakepy copied to clipboard
Prevent unhanded quitting from wakepy CLI command
It is currently (v.0.8.0dev) possible to quit the wakepy CLI app with Ctrl+C. That is the instructed way (raises KeyboardInterrupt).
Also these seem to quit wakepy
- Ctrl + Z --> get
/ [Press Ctrl+C to exit]^Z
[5]+ Stopped wakepy
- Ctrl + < (Finnish Keyboard) --> get
| [Press Ctrl+C to exit]^\Quit (core dumped)
The problem is that if the mode is not deactivated properly, in some cases it might leave something in a bad state. Currently no wakepy.Method is such that it would leave something behind, but it would probably be better to be too careful with this.
Task
- Handle these inputs and simply ignore them.