65 ## print(line) ## debug # __IGNORE_WARNING_M891__ |
65 ## print(line) ## debug # __IGNORE_WARNING_M891__ |
66 |
66 |
67 try: |
67 try: |
68 commandDict = json.loads(line.strip()) |
68 commandDict = json.loads(line.strip()) |
69 except (TypeError, ValueError) as err: |
69 except (TypeError, ValueError) as err: |
70 E5MessageBox.critical( |
70 EricMessageBox.critical( |
71 None, |
71 None, |
72 self.tr("Single Application Protocol Error"), |
72 self.tr("Single Application Protocol Error"), |
73 self.tr("""<p>The response received from the single""" |
73 self.tr("""<p>The response received from the single""" |
74 """ application client could not be decoded.""" |
74 """ application client could not be decoded.""" |
75 """ Please report this issue with the received""" |
75 """ Please report this issue with the received""" |
76 """ data to the eric bugs email address.</p>""" |
76 """ data to the eric bugs email address.</p>""" |
77 """<p>Error: {0}</p>""" |
77 """<p>Error: {0}</p>""" |
78 """<p>Data:<br/>{1}</p>""").format( |
78 """<p>Data:<br/>{1}</p>""").format( |
79 str(err), Utilities.html_encode(line.strip())), |
79 str(err), Utilities.html_encode(line.strip())), |
80 E5MessageBox.Ok) |
80 EricMessageBox.Ok) |
81 return |
81 return |
82 |
82 |
83 command = commandDict["command"] |
83 command = commandDict["command"] |
84 arguments = commandDict["arguments"] |
84 arguments = commandDict["arguments"] |
85 |
85 |