mirror of
git://git.yoctoproject.org/poky
synced 2026-09-26 22:08:54 +00:00
bitbake: cookerdata.py: Catch BBHandledException, preventing a backtrace in an event
The event handling 'Exception' was catching and triggering a backtrace. This trace was obscuring any errors from an event handler that had raised the BBHandledException, which should indicate do not print additional information. (Bitbake rev: 51ca5193a5674b27d816140b0254f485912177a2) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f1d8f1e693
commit
08af663a15
@ -292,7 +292,7 @@ class CookerDataBuilder(object):
|
|||||||
bb.event.fire(bb.event.ConfigParsed(), mcdata)
|
bb.event.fire(bb.event.ConfigParsed(), mcdata)
|
||||||
self.mcdata[config] = mcdata
|
self.mcdata[config] = mcdata
|
||||||
|
|
||||||
except SyntaxError:
|
except (SyntaxError, bb.BBHandledException):
|
||||||
raise bb.BBHandledException
|
raise bb.BBHandledException
|
||||||
except bb.data_smart.ExpansionError as e:
|
except bb.data_smart.ExpansionError as e:
|
||||||
logger.error(str(e))
|
logger.error(str(e))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user