Skip to content

Commit

Permalink
ignore utf-8 decoding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jtylh authored Oct 20, 2020
1 parent 5bb9e59 commit 64217cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redisearch/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ def to_string(s):
if isinstance(s, six.string_types):
return s
elif isinstance(s, six.binary_type):
return s.decode('utf-8')
return s.decode('utf-8','ignore')
else:
return s # Not a string we care about

0 comments on commit 64217cd

Please sign in to comment.