Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 49CF470057 for ; Thu, 15 Sep 2016 20:57:21 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u8FKvMkG015003 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 15 Sep 2016 13:57:22 -0700 (PDT) Received: from msp-dhcp15.wrs.com (172.25.34.15) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.294.0; Thu, 15 Sep 2016 13:57:22 -0700 From: Mark Hatle To: Date: Thu, 15 Sep 2016 15:57:21 -0500 Message-ID: <1473973041-217864-1-git-send-email-mark.hatle@windriver.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Subject: [PATCH] cookerdata.py: Catch BBHandledException, preventing a backtrace in an event X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2016 20:57:22 -0000 Content-Type: text/plain 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 --- 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