runqueue: Drop SystemExit usage
PATCH 1/1 runqueue: Drop SystemExit usage
Using bb.fatal for a fatal error message is the best practise, switch the code to match other call sites.
Signed-off-by Richard Purdie <[email protected]>
--- lib/bb/runqueue.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
lib/bb/runqueue.py +1 -2
@@ -1941,8 +1941,7 @@ class RunQueueExecute: try: module = __import__(modname, fromlist=(name,)) except ImportError as exc: - logger.critical("Unable to import scheduler '%s' from '%s': %s" % (name, modname, exc)) - raise SystemExit(1) + bb.fatal("Unable to import scheduler '%s' from '%s': %s" % (name, modname, exc)) else: schedulers.add(getattr(module, name)) return schedulers
Signature · 1 line
2.37.2