ctrl c exception python code example
Example: ctrl c exception python
#Try the following:
try:
# DO THINGS
except KeyboardInterrupt:
# quit
sys.exit()
#Try the following:
try:
# DO THINGS
except KeyboardInterrupt:
# quit
sys.exit()