From a50017ba71250e1710a6425b60ac7e3f03d88295 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 14 Sep 2013 16:59:24 +0000 Subject: [PATCH] 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 siutation instead. Signed-off-by: Richard Purdie --- lib/bb/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index 64491ff7f7b..018b7442bf7 100644 --- a/lib/bb/__init__.py +++ b/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 -- 2.47.3