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-19 07:48:28 +0000 |
commit | a7e3c0f04665c802f563bfe5444ae3246138e802 (patch) | |
tree | f7c6b049efb78e57ad752a52a06b8b2f5e65fbd5 /bitbake | |
parent | 65de367cfe0db5226c1334827810280afc727e73 (diff) | |
download | poky-a7e3c0f04665c802f563bfe5444ae3246138e802.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index ce711b6252..e5bd9311f2 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1941,8 +1941,7 @@ class RunQueueExecute: | |||
1941 | try: | 1941 | try: |
1942 | module = __import__(modname, fromlist=(name,)) | 1942 | module = __import__(modname, fromlist=(name,)) |
1943 | except ImportError as exc: | 1943 | except ImportError as exc: |
1944 | logger.critical("Unable to import scheduler '%s' from '%s': %s" % (name, modname, exc)) | 1944 | bb.fatal("Unable to import scheduler '%s' from '%s': %s" % (name, modname, exc)) |
1945 | raise SystemExit(1) | ||
1946 | else: | 1945 | else: |
1947 | schedulers.add(getattr(module, name)) | 1946 | schedulers.add(getattr(module, name)) |
1948 | return schedulers | 1947 | return schedulers |