Hi, > I would like to stop the script running in response to a CTRL-C. how about "KeyboardInterrupt"?
try:
...
except KeyboardInterrupt:
print "You pressed Ctrl+C"
Roland
--
http://mail.python.org/mailman/listinfo/python-list
Hi, > I would like to stop the script running in response to a CTRL-C. how about "KeyboardInterrupt"?
try:
...
except KeyboardInterrupt:
print "You pressed Ctrl+C"
Roland
--
http://mail.python.org/mailman/listinfo/python-list