how to remove trackback on python when ctrl c
import signal
import sys
signal.signal(signal.SIGINT, lambda x, y: sys.exit(0))
Are there any code examples left?
New code examples in category Python
import signal
import sys
signal.signal(signal.SIGINT, lambda x, y: sys.exit(0))