|
@ -229,6 +229,13 @@ except: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Capture Ctlr+C / SIGINT and let @atexit handle the rest. |
|
|
|
|
|
import signal |
|
|
|
|
|
import sys |
|
|
|
|
|
def signal_handler(sig, frame): |
|
|
|
|
|
sys.exit(0) #atexit will trigger |
|
|
|
|
|
signal.signal(signal.SIGINT, signal_handler) |
|
|
|
|
|
|
|
|
#Catch Exceptions even if PyQt crashes. |
|
|
#Catch Exceptions even if PyQt crashes. |
|
|
import sys |
|
|
import sys |
|
|
sys._excepthook = sys.excepthook |
|
|
sys._excepthook = sys.excepthook |
|
|