* [PATCH] bin/bitbake: Improve exception handling
@ 2013-05-20 22:00 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-05-20 22:00 UTC (permalink / raw)
To: bitbake-devel
Due to the internal event processing, this excepting handler usually raises an
Empty error, masking the underlying failure. Ensure the original exception is
raised.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 519ecd9..7087d2d 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -242,7 +242,8 @@ def main():
server.addcooker(cooker)
server.saveConnectionDetails()
- except:
+ except Exception as e:
+ exc_info = sys.exc_info()
while True:
try:
import queue
@@ -254,7 +255,7 @@ def main():
break
if isinstance(event, logging.LogRecord):
logger.handle(event)
- raise
+ raise exc_info[1], None, exc_info[2]
server.detach()
# Should no longer need to ever reference cooker
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-20 22:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20 22:00 [PATCH] bin/bitbake: Improve exception handling Richard Purdie
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.