File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -935,7 +935,8 @@ async def _encrypt_helper(
935
935
contention_factor = contention_factor ,
936
936
range_opts = range_opts_bytes ,
937
937
is_expression = is_expression ,
938
- text_opts = text_opts_bytes ,
938
+ # For compatibility with pymongocrypt < 1.16:
939
+ ** {"text_opts" : text_opts_bytes } if text_opts_bytes else {},
939
940
)
940
941
return decode (encrypted_doc )["v" ]
941
942
Original file line number Diff line number Diff line change @@ -928,7 +928,8 @@ def _encrypt_helper(
928
928
contention_factor = contention_factor ,
929
929
range_opts = range_opts_bytes ,
930
930
is_expression = is_expression ,
931
- text_opts = text_opts_bytes ,
931
+ # For compatibility with pymongocrypt < 1.16:
932
+ ** {"text_opts" : text_opts_bytes } if text_opts_bytes else {},
932
933
)
933
934
return decode (encrypted_doc )["v" ]
934
935
You can’t perform that action at this time.
0 commit comments