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

login
register
mail settings
Submitter Richard Purdie
Date May 30, 2014, 2:54 p.m.
Message ID <1401461669.31309.50.camel@ted>
Download mbox | patch
Permalink /patch/73011/
State New
Headers show

Comments

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

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()