Corrected an issue in the Python debugger interface causing an exception in eric7_shell (see issue 576). eric7

Fri, 06 Dec 2024 09:12:46 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 06 Dec 2024 09:12:46 +0100
branch
eric7
changeset 11087
8f5d1b5e16c9
parent 11086
9f15464daafa
child 11088
0299c9ba1c6f

Corrected an issue in the Python debugger interface causing an exception in eric7_shell (see issue 576).

src/eric7/Debugger/DebuggerInterfacePython.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Thu Dec 05 16:54:37 2024 +0100
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Fri Dec 06 09:12:46 2024 +0100
@@ -910,7 +910,8 @@
             sock = self.__pendingConnections.pop()
             self.__shutdownSocket(sock)
 
-        self.__ericServerDebuggerInterface.stopClient()
+        if self.__ericServerDebuggerInterface is not None:
+            self.__ericServerDebuggerInterface.stopClient()
 
         # reinitialize
         self.__commandQueue.clear()

eric ide

mercurial