diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-16 09:33:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-17 10:45:57 +0100 |
commit | 6933d4b57ef9b2b6bbc8c97069a4f54e46eb3e4d (patch) | |
tree | 9eabb96aabd85eda4776e33ea6459f89d4d8bb8f | |
parent | 600aaa78c15c749614d5f3641cbc4e94c6e42a9d (diff) | |
download | poky-6933d4b57ef9b2b6bbc8c97069a4f54e46eb3e4d.tar.gz |
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>
-rw-r--r-- | bitbake/lib/bb/asyncrpc/serv.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): | |||
211 | self.server.close() | 211 | self.server.close() |
212 | 212 | ||
213 | def cleanup(self): | 213 | def cleanup(self): |
214 | os.unlink(self.path) | 214 | try: |
215 | os.unlink(self.path) | ||
216 | except FileNotFoundError: | ||
217 | pass | ||
215 | 218 | ||
216 | 219 | ||
217 | class WebsocketsServer(object): | 220 | class WebsocketsServer(object): |