public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Add a check for "None" to raise a WicError
@ 2026-07-14 11:22 Ulrich Teichert
  0 siblings, 0 replies; only message in thread
From: Ulrich Teichert @ 2026-07-14 11:22 UTC (permalink / raw)
  To: isar-users; +Cc: Ulrich Teichert

Add a check for "None" to raise a WicError because get_bitbake_var
may return "None" if the variable is not available, which
would result in an exception inside os.path.isdir and not to the WicError
exception as indented.

Signed-off-by: Ulrich Teichert <ulrich.teichert@kumkeo.de>
---
 scripts/lib/wic/plugins/source/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index e29f3a4c..977ac0d3 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -54,7 +54,7 @@ class RootfsPlugin(SourcePlugin):
             return os.path.realpath(rootfs_dir)

         image_rootfs_dir = get_bitbake_var("IMAGE_ROOTFS", rootfs_dir)
-        if not os.path.isdir(image_rootfs_dir):
+        if image_rootfs_dir == None or not os.path.isdir(image_rootfs_dir):
             raise WicError("No valid artifact IMAGE_ROOTFS from image "
                            "named %s has been found at %s, exiting." %
                            (rootfs_dir, image_rootfs_dir))
--
2.47.3


Mit freundlichen Grüßen / Best regards


Dipl.-Inform. Ulrich Teichert
Senior Software Engineer



Phone +49 431 375938-0
_____________________________________

Im Zuge der Weiterentwicklung unserer Unternehmensstruktur stellen wir die gesamte E-Mail-Kommunikation der e.bs group auf eine neue, einheitliche Domain @ebs-group.io um. Dies geschieht sukzessive. Ab sofort erhalten Sie daher für die umgestellten Kontakte auch E-Mails unter der Domain @ebs-group.io. Wir bitten diese Domain in Ihr Whitelisting für E-Mails oder z.B. auch MS-Teams mit aufzunehmen. E-Mails, welche Sie an die Ihnen bekannten @kumkeo.de Adressen senden, werden weiterhin bei den vorgesehenen Empfängern eingehen.
_____________________________________

e.bs kumkeo GmbH
Am Kiel-Kanal 1
24106 Kiel, Deutschland

ebs-group.io

Rechnungen bitte an e.bs kumkeo GmbH, Heidenkampsweg 82a, 20097 Hamburg

Geschäftsführer Michael Leitner, Günter Hagspiel
Registergericht Amtsgericht Hamburg
Registernummer HRB 187712
USt-Idnr. DE449906070


-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/e9f97868891d431f87bed6454e10ef7f%40kumkeo.de.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-15 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 11:22 [PATCH] Add a check for "None" to raise a WicError Ulrich Teichert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox