Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 474e9fb

Browse files
authored
Merge pull request #104 from saberuster/master
decode add a replace option
2 parents 487c918 + 15474ef commit 474e9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: stream/ws_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def update(self, timeout=0):
181181
elif op_code == ABNF.OPCODE_BINARY or op_code == ABNF.OPCODE_TEXT:
182182
data = frame.data
183183
if six.PY3:
184-
data = data.decode("utf-8")
184+
data = data.decode("utf-8", "replace")
185185
if len(data) > 1:
186186
channel = ord(data[0])
187187
data = data[1:]

0 commit comments

Comments
 (0)