Skip to content

Commit dbd5f22

Browse files
authored
Ignore unicode decode errors
1 parent ecece6b commit dbd5f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcpbin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def recvline(self):
210210
return l
211211
self.f.flush()
212212
self.f.write(l)
213-
sys.stdout.write(self.host + ': ' + l.decode('utf-8'))
213+
sys.stdout.write(self.host + ': ' + l.decode('utf-8', errors="ignore"))
214214
return l
215215

216216
@staticmethod

0 commit comments

Comments
 (0)