diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-07 12:07:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-08 10:32:21 +0000 |
commit | 9d1d35068e0ebb082747114a7f07faaf5423dfa6 (patch) | |
tree | 4b5cc85af8d58cae7acbd316d8467901eee4bd47 | |
parent | ad11076737e3bc7aae94b795b5caae285cc294ea (diff) | |
download | poky-9d1d35068e0ebb082747114a7f07faaf5423dfa6.tar.gz |
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>
-rw-r--r-- | bitbake/lib/bb/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c4b25b50ac..9073f15ea2 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -378,7 +378,7 @@ def _print_exception(t, value, tb, realfile, text, context): | |||
378 | 378 | ||
379 | # If the exception is from spwaning a task, let's be helpful and display | 379 | # If the exception is from spwaning a task, let's be helpful and display |
380 | # the output (which hopefully includes stderr). | 380 | # the output (which hopefully includes stderr). |
381 | if isinstance(value, subprocess.CalledProcessError): | 381 | if isinstance(value, subprocess.CalledProcessError) and value.output: |
382 | error.append("Subprocess output:") | 382 | error.append("Subprocess output:") |
383 | error.append(value.output.decode("utf-8", errors="ignore")) | 383 | error.append(value.output.decode("utf-8", errors="ignore")) |
384 | finally: | 384 | finally: |