summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index f236daceb1..2a3a3afaca 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -98,9 +98,12 @@ class Command:
98 else: 98 else:
99 self.finishAsyncCommand("Exited with %s" % arg) 99 self.finishAsyncCommand("Exited with %s" % arg)
100 return False 100 return False
101 except Exception: 101 except Exception as exc:
102 import traceback 102 import traceback
103 self.finishAsyncCommand(traceback.format_exc()) 103 if isinstance(exc, bb.BBHandledException):
104 self.finishAsyncCommand("")
105 else:
106 self.finishAsyncCommand(traceback.format_exc())
104 return False 107 return False
105 108
106 def finishAsyncCommand(self, msg=None, code=None): 109 def finishAsyncCommand(self, msg=None, code=None):