scripts: sd_fusing: handle lsblk errors better 64/312364/2
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 7 Jun 2024 10:44:44 +0000 (12:44 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 13 Jun 2024 04:22:43 +0000 (13:22 +0900)
commit3184ca768e390fb7f33c81516a12da2b6fcb66a7
tree617785d08dba9d1b22ef2df30d678d1b6d80df7d
parentaccc1cf3dbea53015f0c0092e8ce11c1ea4b577c
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
scripts/tizen/sd_fusing.py