src/eric7/Debugger/DebuggerInterfacePython.py

branch
eric7-maintenance
changeset 10941
07cad049002c
parent 10814
ba20efe10336
parent 10930
5a883e68aa35
child 11019
27cd57e98461
diff -r ea32acb9764c -r 07cad049002c src/eric7/Debugger/DebuggerInterfacePython.py
--- a/src/eric7/Debugger/DebuggerInterfacePython.py	Sat Aug 31 10:54:50 2024 +0200
+++ b/src/eric7/Debugger/DebuggerInterfacePython.py	Tue Oct 01 11:27:52 2024 +0200
@@ -18,7 +18,7 @@
 
 from PyQt6.QtCore import QObject, QProcess, QProcessEnvironment, QTimer, pyqtSlot
 
-from eric7 import Preferences, Utilities
+from eric7 import EricUtilities, Preferences, Utilities
 from eric7.EricWidgets import EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.Globals import getConfig
@@ -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):
         """
@@ -1662,7 +1663,7 @@
                     """ eric bugs email address.</p>"""
                     """<p>Error: {0}</p>"""
                     """<p>Data:<br/>{1}</p>"""
-                ).format(str(err), Utilities.html_encode(jsonStr.strip())),
+                ).format(str(err), EricUtilities.html_encode(jsonStr.strip())),
                 EricMessageBox.Ok,
             )
             return

eric ide

mercurial