Fixed an issue in the debugger interface causing a message when an empty response was received from the debugger (see issue 569). eric7

Fri, 27 Sep 2024 10:28:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 27 Sep 2024 10:28:32 +0200
branch
eric7
changeset 10930
5a883e68aa35
parent 10929
edfd452bb9be
child 10931
56f41b1e163a

Fixed an issue in the debugger interface causing a message when an empty response was received from the debugger (see issue 569).

src/eric7/Debugger/DebuggerInterfacePython.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Fri Sep 27 09:48:07 2024 +0200
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Fri Sep 27 10:28:32 2024 +0200
@@ -1636,7 +1636,8 @@
             logging.getLogger(__name__).debug("<Debug-Server> %s", jsonStr)
             ##print("Server: ", jsonStr)    ## debug       # __IGNORE_WARNING_M891__
 
-            self.handleJsonCommand(jsonStr, sock)
+            if jsonStr:
+                self.handleJsonCommand(jsonStr, sock)
 
     def handleJsonCommand(self, jsonStr, sock):
         """

eric ide

mercurial