From 7af78d74ef21dbb68d382121b4f28db53ed3685e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 5 Aug 2021 13:32:34 +0100 Subject: [PATCH] bitbake: ui/taskexp: Improve startup exception handling When an exception occurs at startup, show it to the user. [YOCTO #14408] (Bitbake rev: 2dc35a3ef95da594db2051369e98e8f678848849) Signed-off-by: Richard Purdie (cherry picked from commit cc1df1af67cfd3e223b39e2b7ea5f86b8cf78aee) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/taskexp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitbake/lib/bb/ui/taskexp.py b/bitbake/lib/bb/ui/taskexp.py index 2b246710ca..81392977a0 100644 --- a/bitbake/lib/bb/ui/taskexp.py +++ b/bitbake/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