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(
935935 contention_factor = contention_factor ,
936936 range_opts = range_opts_bytes ,
937937 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 {},
939940 )
940941 return decode (encrypted_doc )["v" ]
941942
Original file line number Diff line number Diff line change @@ -928,7 +928,8 @@ def _encrypt_helper(
928928 contention_factor = contention_factor ,
929929 range_opts = range_opts_bytes ,
930930 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 {},
932933 )
933934 return decode (encrypted_doc )["v" ]
934935
You can’t perform that action at this time.
0 commit comments