mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 05:02:21 +02:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user