From cbc4b83ae0fc8dcd1abd11b2e619399f56f59f33 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Thu, 19 May 2005 21:26:19 +0000 Subject: 2005-05-19 Jeremy Katz * exception.py (handleException): Just exit on the bdbQuit exception. --- exception.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'exception.py') diff --git a/exception.py b/exception.py index 7b716350f..22c6f2feb 100644 --- a/exception.py +++ b/exception.py @@ -4,7 +4,7 @@ # Matt Wilson # Erik Troan # -# 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__ -- cgit