mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
bitbake: runqueue: Drop SystemExit usage
Using bb.fatal for a fatal error message is the best practise, switch the code to match other call sites. (Bitbake rev: c27e48fa81c2327a4a355a028884ab457cde3ae7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user