diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-17 15:16:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-17 15:18:35 +0000 |
commit | c27e48fa81c2327a4a355a028884ab457cde3ae7 (patch) | |
tree | 29dcaa11ca221bede0f50f1a6da63a3910401b51 | |
parent | 13279044f16f2cf2502ebf39d277415f99bb6c18 (diff) | |
download | bitbake-contrib-c27e48fa81c2327a4a355a028884ab457cde3ae7.tar.gz |
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 <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/runqueue.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index ce711b625..e5bd9311f 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -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 |