diff options
author | 2020-10-01 21:16:12 +0100 | |
---|---|---|
committer | 2020-10-01 21:16:57 +0100 | |
commit | 2607799cfb9312a424d096585a577198d977d379 (patch) | |
tree | 914987b415e116da772619e49aea529c9feee22a /bitbake | |
parent | afb863afc342ba09afa280b8b337c078a1d6b287 (diff) | |
download | poky-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.py | 3 |
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: |