From 4a78f52d87d5bba57e24f550a84d99e045777b30 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 30 May 2014 15:57:50 +0100 Subject: bitbake: bb.fatal: Raise a BBHandledException instead of exiting With new bitbake UIs having the cooker exit at 'random' points in the codebase is problematic. This patch raises an exception which matches the situation instead. (Bitbake rev: 181a9735d02ebd517378558e909efc8b1b118973) Signed-off-by: Richard Purdie --- bitbake/lib/bb/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 1478dd23ba..84f6ec3f3c 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py @@ -99,8 +99,7 @@ def error(*args): def fatal(*args): logger.critical(''.join(args)) - sys.exit(1) - + raise BBHandledException() def deprecated(func, name=None, advice=""): """This is a decorator which can be used to mark functions -- cgit v1.2.3-54-g00ecf