equal
deleted
inserted
replaced
545 sys.excepthook = LogException |
545 sys.excepthook = LogException |
546 |
546 |
547 |
547 |
548 def installThreadExcepthook(): |
548 def installThreadExcepthook(): |
549 init_old = threading.Thread.__init__ |
549 init_old = threading.Thread.__init__ |
|
550 |
550 def init(self, *args, **kwargs): |
551 def init(self, *args, **kwargs): |
551 init_old(self, *args, **kwargs) |
552 init_old(self, *args, **kwargs) |
552 run_old = self.run |
553 run_old = self.run |
|
554 |
553 def run_with_except_hook(*args, **kw): |
555 def run_with_except_hook(*args, **kw): |
554 try: |
556 try: |
555 run_old(*args, **kw) |
557 run_old(*args, **kw) |
556 except (KeyboardInterrupt, SystemExit): |
558 except (KeyboardInterrupt, SystemExit): |
557 raise |
559 raise |