From 6933d4b57ef9b2b6bbc8c97069a4f54e46eb3e4d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 16 Jul 2025 09:33:38 +0100 Subject: bitbake: asyncrpc: Avoid file not found traceback in logs If the server is quickly stopped, we see tracebacks in the locks due to the file not existing. Hide these as they're not errors. (Bitbake rev: a7e1a07e9ef7e6f6a1bcaf567d7916a8ee1ef087) Signed-off-by: Richard Purdie --- bitbake/lib/bb/asyncrpc/serv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/asyncrpc/serv.py b/bitbake/lib/bb/asyncrpc/serv.py index 667217c5c1..35e93f7c96 100644 --- a/bitbake/lib/bb/asyncrpc/serv.py +++ b/bitbake/lib/bb/asyncrpc/serv.py @@ -211,7 +211,10 @@ class UnixStreamServer(StreamServer): self.server.close() def cleanup(self): - os.unlink(self.path) + try: + os.unlink(self.path) + except FileNotFoundError: + pass class WebsocketsServer(object): -- cgit v1.2.3-54-g00ecf