diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-01 21:16:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-01 21:16:14 +0100 |
commit | 3daff610d9f39d73c80c54d1df46f573666e20db (patch) | |
tree | f799072620aa41c40b8d8c048bb3937ee2e0ac5c | |
parent | 75d9ef04a908e366633b255d23ab3275f6860d3a (diff) | |
download | bitbake-contrib-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.py | 3 |
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: |