aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-05 13:32:34 +0100
committerSteve Sakoman <steve@sakoman.com>2021-09-24 12:38:18 -1000
commit2dc35a3ef95da594db2051369e98e8f678848849 (patch)
tree6390d22280a69ac8d7418d74a31670bc7544ee82
parent77f62ec8d45cf639d5030d0743778b9bc496a25c (diff)
downloadbitbake-2dc35a3ef95da594db2051369e98e8f678848849.tar.gz
ui/taskexp: Improve startup exception handling
When an exception occurs at startup, show it to the user. [YOCTO #14408] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cc1df1af67cfd3e223b39e2b7ea5f86b8cf78aee) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--lib/bb/ui/taskexp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/ui/taskexp.py b/lib/bb/ui/taskexp.py
index 2b246710c..81392977a 100644
--- a/lib/bb/ui/taskexp.py
+++ b/lib/bb/ui/taskexp.py
@@ -8,6 +8,7 @@
#
import sys
+import traceback
try:
import gi
@@ -218,6 +219,9 @@ def main(server, eventHandler, params):
except client.Fault as x:
print("XMLRPC Fault getting commandline:\n %s" % x)
return
+ except Exception as e:
+ print("Exception in startup:\n %s" % traceback.format_exc())
+ return
if gtkthread.quit.isSet():
return