summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-05-19 21:26:19 +0000
committerJeremy Katz <katzj@redhat.com>2005-05-19 21:26:19 +0000
commitcbc4b83ae0fc8dcd1abd11b2e619399f56f59f33 (patch)
tree465dcb2df71ec0f395176a7406c23bd836ff9561 /exception.py
parent68e1abae1a0defd020514e7518bd857d492d8853 (diff)
downloadanaconda-cbc4b83ae0fc8dcd1abd11b2e619399f56f59f33.tar.gz
anaconda-cbc4b83ae0fc8dcd1abd11b2e619399f56f59f33.tar.xz
anaconda-cbc4b83ae0fc8dcd1abd11b2e619399f56f59f33.zip
2005-05-19 Jeremy Katz <katzj@redhat.com>
* exception.py (handleException): Just exit on the bdbQuit exception.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/exception.py b/exception.py
index 7b716350f..22c6f2feb 100644
--- a/exception.py
+++ b/exception.py
@@ -4,7 +4,7 @@
# Matt Wilson <msw@redhat.com>
# Erik Troan <ewt@redhat.com>
#
-# Copyright 2000-2003 Red Hat, Inc.
+# Copyright 2000-2005 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -22,6 +22,7 @@ import traceback
import iutil
import types
import rpm
+import bdb
from string import joinfields
from cPickle import Pickler
from rhpl.translate import _
@@ -198,6 +199,9 @@ def dumpException(out, text, tb, dispatch):
traceback.print_exc(None, out)
def handleException(dispatch, intf, (type, value, tb)):
+ if isinstance(value, bdb.BdbQuit):
+ sys.exit(1)
+
# restore original exception handler
sys.excepthook = sys.__excepthook__