Skip to contentSkip to conversation

event.py: Allow passthrough of BBHandledException events

PATCH New Richard Purdie 1 participant 1 message May 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 event.py: Allow passthrough of BBHandledException events

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.

bitbake/lib/bb/event.py +1 -1
index 04d775c..05ff543 100644
@@ -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()