summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-17 15:16:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-17 15:18:35 +0000
commitc27e48fa81c2327a4a355a028884ab457cde3ae7 (patch)
tree29dcaa11ca221bede0f50f1a6da63a3910401b51
parent13279044f16f2cf2502ebf39d277415f99bb6c18 (diff)
downloadbitbake-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.py3
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