cooker: Avoid tracebacks if data was never setup
PATCH 1/1 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 <[email protected]>
--- lib/bb/cooker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/bb/cooker.py +2 -1
@@ -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:
Signature · 1 line
2.25.1