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 <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2025-07-16 09:33:38 +01:00
parent 600aaa78c1
commit 6933d4b57e

View File

@@ -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):