archive mirror
 help / color / mirror / Atom feed
* [PATCH] cookerdata: Drop dubious exception handling code
@ 2023-02-17 12:40 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2023-02-17 12:40 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Martin Jansa

This code appears to be dangerous, it swallows exceptions, turning them into
"handled" versions which then show no errors to the user. This is a pretty
poor user experience and I can't see why this code should be swallowing
such things. Drop the worst bits of code.

Signed-off-by: Richard Purdie <>
 lib/bb/ | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/bb/ b/lib/bb/
index 2d52ce4c8f..dc498c205a 100644
--- a/lib/bb/
+++ b/lib/bb/
@@ -294,14 +294,9 @@ class CookerDataBuilder(object):
             self.data_hash = data_hash.hexdigest()
-        except (SyntaxError, bb.BBHandledException):
-            raise bb.BBHandledException()
         except bb.data_smart.ExpansionError as e:
             raise bb.BBHandledException()
-        except Exception:
-            logger.exception("Error parsing configuration files")
-            raise bb.BBHandledException()

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

only message in thread, other threads:[~2023-02-17 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17 12:40 [PATCH] cookerdata: Drop dubious exception handling code Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).