204 }, |
204 }, |
205 ) |
205 ) |
206 return {} |
206 return {} |
207 |
207 |
208 jsonStr = data.decode("utf8", "backslashreplace") |
208 jsonStr = data.decode("utf8", "backslashreplace") |
209 print("Eric Server Receive:", jsonStr) # for debugging # noqa: M801 |
209 # - print("Eric Server Receive:", jsonStr) # for debugging # noqa: M801 |
210 try: |
210 try: |
211 return json.loads(jsonStr.strip()) |
211 return json.loads(jsonStr.strip()) |
212 except (TypeError, ValueError) as err: |
212 except (TypeError, ValueError) as err: |
213 self.sendJson( |
213 self.sendJson( |
214 category=EricRequestCategory.Error, |
214 category=EricRequestCategory.Error, |