Skip to content

Commit 64217cd

Browse files
authored
ignore utf-8 decoding errors
1 parent 5bb9e59 commit 64217cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisearch/_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ def to_string(s):
44
if isinstance(s, six.string_types):
55
return s
66
elif isinstance(s, six.binary_type):
7-
return s.decode('utf-8')
7+
return s.decode('utf-8','ignore')
88
else:
99
return s # Not a string we care about

0 commit comments

Comments
 (0)