]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
event: don't catch systemexit from handler execution
authorChris Larson <chris_larson@mentor.com>
Thu, 2 Jun 2011 21:32:17 +0000 (14:32 -0700)
committerChris Larson <chris_larson@mentor.com>
Thu, 2 Jun 2011 21:32:19 +0000 (14:32 -0700)
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 <chris_larson@mentor.com>
lib/bb/event.py

index 16d936c1b6fc8d3f580e002dede874cd6aec249e..ef64f519fc0e0302acca39e8bae9f69dbb98b296 100644 (file)
@@ -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 = []