summaryrefslogtreecommitdiffstats
path: root/bitbake
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:57 +0100
commit2607799cfb9312a424d096585a577198d977d379 (patch)
tree914987b415e116da772619e49aea529c9feee22a /bitbake
parentafb863afc342ba09afa280b8b337c078a1d6b287 (diff)
downloadpoky-2607799cfb9312a424d096585a577198d977d379.tar.gz
poky-2607799cfb9312a424d096585a577198d977d379.tar.bz2
poky-2607799cfb9312a424d096585a577198d977d379.zip
bitbake: cooker: Avoid tracebacks if data was never setup
Recent changes mean data might not be setup. If its not, avoid tracebacks. (Bitbake rev: 3daff610d9f39d73c80c54d1df46f573666e20db) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 5442f7d225..1f4cc1e96d 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/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: