Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Leeon123 authored Jan 4, 2021
1 parent 4b2cdc6 commit d2d46e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
def ReadSocket(sock,length):
data = ""
while data == "":
data += sock.recv(length).decode().strip()
data += sock.recv(length).decode(errors='ignore').strip()#quick fix
return data

def ReadLine(sock,length):
Expand Down

0 comments on commit d2d46e7

Please sign in to comment.