src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py

branch
eric7
changeset 10956
1c22b555df34
parent 10954
c3d109783fbd
child 10957
fbd61fd3fdc1
diff -r 0cc20e930444 -r 1c22b555df34 src/eric7/RemoteServer/EricServerDebuggerRequestHandler.py
--- 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()

eric ide

mercurial