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

Commit

Permalink
Merge pull request #104 from saberuster/master
Browse files Browse the repository at this point in the history
decode add a replace option
  • Loading branch information
k8s-ci-robot committed Jun 21, 2019
2 parents 487c918 + 15474ef commit 474e9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream/ws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def update(self, timeout=0):
elif op_code == ABNF.OPCODE_BINARY or op_code == ABNF.OPCODE_TEXT:
data = frame.data
if six.PY3:
data = data.decode("utf-8")
data = data.decode("utf-8", "replace")
if len(data) > 1:
channel = ord(data[0])
data = data[1:]
Expand Down

0 comments on commit 474e9fb

Please sign in to comment.