bitbake: 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. (Bitbake rev: 7d548568a55adfe84a976f2a549995e42da1afef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
77fc40a0f8
commit
308ae92100
|
@ -250,7 +250,8 @@ Default BBFILES are the .bb files in the current directory.""")
|
|||
|
||||
server.addcooker(cooker)
|
||||
server.saveConnectionDetails()
|
||||
except:
|
||||
except Exception as e:
|
||||
exc_info = sys.exc_info()
|
||||
while True:
|
||||
try:
|
||||
import queue
|
||||
|
@ -262,7 +263,7 @@ Default BBFILES are the .bb files in the current directory.""")
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue