From 2f73a9394d96e2b36548ae76e482aba58c461bf1 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Wed, 9 Jan 2002 21:06:21 +0000 Subject: restore original exception handler to prevent multiple dialogs --- exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'exception.py') diff --git a/exception.py b/exception.py index 346974bd9..a787ce331 100644 --- a/exception.py +++ b/exception.py @@ -15,6 +15,7 @@ # import isys +import sys import os import signal import traceback @@ -158,6 +159,9 @@ def dumpException(out, text, tb, dispatch): traceback.print_exc(None, out) def handleException(dispatch, intf, (type, value, tb)): + # restore original exception handler + sys.excepthook = sys.__excepthook__ + list = traceback.format_exception (type, value, tb) text = joinfields (list, "") rc = intf.exceptionWindow (_("Exception Occurred"), text) -- cgit