DebuggerInterfacePython: introduced an additional safeguard against meaningless error records during shutdown. eric7

Tue, 05 Jul 2022 09:34:12 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 05 Jul 2022 09:34:12 +0200
branch
eric7
changeset 9207
c0b4ca34de2f
parent 9206
44dc7df5d1e4
child 9208
3fc8dfeb6ebe

DebuggerInterfacePython: introduced an additional safeguard against meaningless error records during shutdown.

eric7/Debugger/DebuggerInterfacePython.py file | annotate | diff | comparison | revisions
--- a/eric7/Debugger/DebuggerInterfacePython.py	Mon Jul 04 19:58:05 2022 +0200
+++ b/eric7/Debugger/DebuggerInterfacePython.py	Tue Jul 05 09:34:12 2022 +0200
@@ -590,7 +590,9 @@
                 if debuggerId in self.__autoContinued:
                     self.__autoContinued.remove(debuggerId)
                 if not self.__inShutdown:
-                    self.debugServer.signalClientDisconnected(debuggerId)
+                    with contextlib.suppress(RuntimeError):
+                        # can be ignored during a shutdown
+                        self.debugServer.signalClientDisconnected(debuggerId)
                 break
         else:
             if sock in self.__pendingConnections:

eric ide

mercurial