849 """ |
849 """ |
850 import json |
850 import json |
851 |
851 |
852 try: |
852 try: |
853 commandDict = json.loads(jsonStr.strip()) |
853 commandDict = json.loads(jsonStr.strip()) |
854 except json.JSONDecodeError as err: |
854 except (TypeError, ValueError) as err: |
855 E5MessageBox.critical( |
855 E5MessageBox.critical( |
856 None, |
856 None, |
857 self.tr("Debug Protocol Error"), |
857 self.tr("Debug Protocol Error"), |
858 self.tr("""<p>The response received from the debugger""" |
858 self.tr("""<p>The response received from the debugger""" |
859 """ backend could not be decoded. Please report""" |
859 """ backend could not be decoded. Please report""" |