[bitbake-devel] event.py: Allow passthrough of BBHandledException events

Submitted by Richard Purdie on May 30, 2014, 2:54 p.m.

Details

Message ID 1401461669.31309.50.camel@ted
State New
Headers show

Commit Message

Richard Purdie May 30, 2014, 2:54 p.m.
We need BBHandledException events to be passed through to the higher
layers, they don't need addition of any traceback since they've already
been reported to the user.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 04d775c..05ff543 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -72,7 +72,7 @@  def execute_handler(name, handler, event, d):
     event.data = d
     try:
         ret = handler(event)
-    except bb.parse.SkipPackage:
+    except (bb.parse.SkipPackage, bb.BBHandledException):
         raise
     except Exception:
         etype, value, tb = sys.exc_info()