All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cookerdata.py: Catch BBHandledException, preventing a backtrace in an event
@ 2016-09-15 20:57 Mark Hatle
  0 siblings, 0 replies; only message in thread
From: Mark Hatle @ 2016-09-15 20:57 UTC (permalink / raw)
  To: bitbake-devel

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.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 lib/bb/cookerdata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index bf9bfbf..9d25aa2 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -284,7 +284,7 @@ class CookerDataBuilder(object):
                 bb.event.fire(bb.event.ConfigParsed(), mcdata)
                 self.mcdata[config] = mcdata
 
-        except SyntaxError:
+        except (SyntaxError, bb.BBHandledException):
             raise bb.BBHandledException
         except bb.data_smart.ExpansionError as e:
             logger.error(str(e))
-- 
2.5.5



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-15 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 20:57 [PATCH] cookerdata.py: Catch BBHandledException, preventing a backtrace in an event Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.