diff options
author | Matt Wilson <msw@redhat.com> | 2002-01-09 21:06:21 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-01-09 21:06:21 +0000 |
commit | 2f73a9394d96e2b36548ae76e482aba58c461bf1 (patch) | |
tree | fdb2499ec17b0c01d56299cef8be1caffc521318 /exception.py | |
parent | 6960500ed137fa587ed4c21bfb3632914236e69f (diff) | |
download | anaconda-2f73a9394d96e2b36548ae76e482aba58c461bf1.tar.gz anaconda-2f73a9394d96e2b36548ae76e482aba58c461bf1.tar.xz anaconda-2f73a9394d96e2b36548ae76e482aba58c461bf1.zip |
restore original exception handler to prevent multiple dialogs
Diffstat (limited to 'exception.py')
-rw-r--r-- | exception.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |