bin/bitbake: Improve exception handling
PATCH 1/1 bin/bitbake: Improve exception handling
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 <[email protected]>
---
bitbake/bin/bitbake +3 -2
@@ -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