--- a/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Sun Oct 06 10:10:08 2024 +0200 +++ b/src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py Sun Oct 06 12:18:51 2024 +0200 @@ -172,7 +172,8 @@ @param sock reference to the disconnected socket @type socket.socket """ - self._server.getSelector().unregister(sock) + with contextlib.suppress(KeyError): + self._server.getSelector().unregister(sock) with contextlib.suppress(OSError): address = sock.getpeername()