Show More
@@ -624,6 +624,7 b' class OSXKernel(TkKernel):' | |||
|
624 | 624 | self.do_one_iteration() |
|
625 | 625 | # and back: |
|
626 | 626 | sys.excepthook = handle_int |
|
627 | ||
|
627 | 628 | t = TimerMac(poll_interval) |
|
628 | 629 | t.add_callback(doi) |
|
629 | 630 | t.start() |
@@ -651,6 +652,9 b' class OSXKernel(TkKernel):' | |||
|
651 | 652 | except KeyboardInterrupt: |
|
652 | 653 | # Ctrl-C shouldn't crash the kernel |
|
653 | 654 | io.raw_print("KeyboardInterrupt caught in kernel") |
|
655 | finally: | |
|
656 | # ensure excepthook is restored | |
|
657 | sys.excepthook = real_excepthook | |
|
654 | 658 | |
|
655 | 659 | |
|
656 | 660 | #----------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now