[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3617/8267] bitbake: utils: Avoid traceback errors
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 3617/8267] bitbake: utils: Avoid traceback errors
- Date: Sun, 17 Dec 2017 00:53:06 +0000 (UTC)
commit 9d1d35068e0ebb082747114a7f07faaf5423dfa6
Author: Richard Purdie <richard purdie linuxfoundation org>
Date: Wed Dec 7 12:07:06 2016 +0000
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>
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 c4b25b5..9073f15 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):
# 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]