Makistos
2/1/2017 - 2:24 PM

How to interrupt a long-running operation in Python. #python

How to interrupt a long-running operation in Python. #python

try:
  // Something really long and boring
except (KeyboardInterrupt, SystemExit):
  // Get me out of here
  exit()