bitbake: utils: Avoid traceback errors
Avoid errors like: ERROR: Exception handler error: 'NoneType' object has no attribute 'decode' (Bitbake rev: 1aeb45abe56061f044c2347889c191d5256ff21f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
ad11076737
commit
9d1d35068e
|
@ -378,7 +378,7 @@ def _print_exception(t, value, tb, realfile, text, context):
|
|||
|
||||
# If the exception is from spwaning a task, let's be helpful and display
|
||||
# the output (which hopefully includes stderr).
|
||||
if isinstance(value, subprocess.CalledProcessError):
|
||||
if isinstance(value, subprocess.CalledProcessError) and value.output:
|
||||
error.append("Subprocess output:")
|
||||
error.append(value.output.decode("utf-8", errors="ignore"))
|
||||
finally:
|
||||
|
|
Loading…
Reference in New Issue