summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-01-09 21:06:21 +0000
committerMatt Wilson <msw@redhat.com>2002-01-09 21:06:21 +0000
commit2f73a9394d96e2b36548ae76e482aba58c461bf1 (patch)
treefdb2499ec17b0c01d56299cef8be1caffc521318 /exception.py
parent6960500ed137fa587ed4c21bfb3632914236e69f (diff)
downloadanaconda-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.py4
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)