* [PATCH] runqueue: Handle BBHandledException correctly
@ 2015-06-19 11:26 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-06-19 11:26 UTC (permalink / raw)
To: bitbake-devel
If we see a BBHandledException in runqueue, the understanding is the system
handled it, printing a log and traceback is just confusing.
Therefore only print these in the cases where its an unknown/unhandled
exception.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 752fc3f3..a5ae42b 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1147,6 +1147,13 @@ class RunQueue:
raise
except SystemExit:
raise
+ except bb.BBHandledException:
+ try:
+ self.teardown_workers()
+ except:
+ pass
+ self.state = runQueueComplete
+ raise
except:
logger.error("An uncaught exception occured in runqueue, please see the failure below:")
try:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-19 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-19 11:26 [PATCH] runqueue: Handle BBHandledException correctly Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox