donate-cpu: Try to fix UnicodeEncodeError in sendAll
This commit is contained in:
parent
c03c262058
commit
768eb79653
|
@ -279,7 +279,7 @@ def diffResults(workPath, ver1, results1, ver2, results2):
|
|||
|
||||
|
||||
def sendAll(connection, data):
|
||||
bytes = data.encode()
|
||||
bytes = data.encode('ascii', 'ignore')
|
||||
while bytes:
|
||||
num = connection.send(bytes)
|
||||
if num < len(bytes):
|
||||
|
|
Loading…
Reference in New Issue