scripts: sd_fusing: handle lsblk errors better
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 7 Jun 2024 10:44:44 +0000 (12:44 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 4 Dec 2024 11:00:01 +0000 (12:00 +0100)
commit4297edc7d67abd6f013661d9e3b586f5fdbdf1c1
treedbc4f12678e5eb3434d8c526d287917d1ba6bbc8
parent1c9c4cb49a629d5aceb6dd69f502dab20d09836f
scripts: sd_fusing: handle lsblk errors better

This makes the error handling a bit more consistent with the rest of the
script by logging an error and doing a sys.exit(1).

Returning an error by returning None would mean that it would need to be
handled elsewhere. However this does not happen, resulting in a
confusing runtime error

    TypeError: can only concatenate str (not "NoneType") to str

as well as warnings in some editors.

Change-Id: I6b3f382e93846c3165d1a8221e2faf7dbf295a86
sd_fusing.py