143 while connection and connection.canReadLine(): |
143 while connection and connection.canReadLine(): |
144 data = connection.readLine() |
144 data = connection.readLine() |
145 jsonLine = bytes(data).decode("utf-8", 'backslashreplace') |
145 jsonLine = bytes(data).decode("utf-8", 'backslashreplace') |
146 |
146 |
147 #- print("JSON Server ({0}): {1}".format(self.__name, jsonLine)) |
147 #- print("JSON Server ({0}): {1}".format(self.__name, jsonLine)) |
|
148 # __IGNORE_WARNING_M891__ |
148 #- this is for debugging only |
149 #- this is for debugging only |
149 |
150 |
150 try: |
151 try: |
151 clientDict = json.loads(jsonLine.strip()) |
152 clientDict = json.loads(jsonLine.strip()) |
152 except (TypeError, ValueError) as err: |
153 except (TypeError, ValueError) as err: |