Skip to content

Commit 635bab0

Browse files
committed
pass "ignore" as a kwarg
Signed-off-by: wiseaidev <[email protected]>
1 parent 876e99a commit 635bab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: aredis_om/model/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ def to_string(s):
11831183
if isinstance(s, (str,)):
11841184
return s
11851185
elif isinstance(s, bytes):
1186-
return s.decode("ignore")
1186+
return s.decode(errors="ignore")
11871187
else:
11881188
return s # Not a string we care about
11891189

0 commit comments

Comments
 (0)