From: Chris Larson Date: Thu, 2 Jun 2011 21:32:17 +0000 (-0700) Subject: event: don't catch systemexit from handler execution X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6a0ffdd583be3df734171d7e91d334f798a79ce;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git event: don't catch systemexit from handler execution This means that anyone firing an event can get a systemexit and result in their process exiting, which isn't ideal, but behaves the way it used to (in particular, ensures that a sanity check failure will halt the build). This should be revisited in the future. Signed-off-by: Chris Larson --- diff --git a/lib/bb/event.py b/lib/bb/event.py index 16d936c1b6f..ef64f519fc0 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -88,7 +88,7 @@ def fire_class_handlers(event, d): for name, handler in _handlers.iteritems(): try: execute_handler(name, handler, event, d) - except BaseException: + except Exception: continue ui_queue = []