aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-01 21:16:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-01 21:16:14 +0100
commit3daff610d9f39d73c80c54d1df46f573666e20db (patch)
treef799072620aa41c40b8d8c048bb3937ee2e0ac5c
parent75d9ef04a908e366633b255d23ab3275f6860d3a (diff)
downloadbitbake-3daff610d9f39d73c80c54d1df46f573666e20db.tar.gz
cooker: Avoid tracebacks if data was never setup
Recent changes mean data might not be setup. If its not, avoid tracebacks. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 5442f7d22..1f4cc1e96 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1679,7 +1679,8 @@ class BBCooker:
if self.hashserv:
self.hashserv.process.terminate()
self.hashserv.process.join()
- bb.event.fire(CookerExit(), self.data)
+ if hasattr(self, "data"):
+ bb.event.fire(CookerExit(), self.data)
def shutdown(self, force = False):
if force: