Public
Authored by Fabian Krautgasser

Handling KeyboardInterrupt as decorator

A new handy decorator to handle your faulty simulations! Need to change a minor bug in the code but don't want to kill your simulation? Just decorate your simulation main function with this little guy and have the opportunity to call ctrl+c and still decide whether to kill your simulation or invoke a save function and save some valuable content!

Edited
keyboard_interrupt_handler.py 1.86 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment