We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2107c2 commit bc4ee39Copy full SHA for bc4ee39
2 files changed
pymongo/asynchronous/encryption.py
@@ -935,7 +935,8 @@ async def _encrypt_helper(
935
contention_factor=contention_factor,
936
range_opts=range_opts_bytes,
937
is_expression=is_expression,
938
- text_opts=text_opts_bytes,
+ # For compatibility with pymongocrypt < 1.16:
939
+ **{"text_opts": text_opts_bytes} if text_opts_bytes else {},
940
)
941
return decode(encrypted_doc)["v"]
942
pymongo/synchronous/encryption.py
@@ -928,7 +928,8 @@ def _encrypt_helper(
928
929
930
931
932
933
934
0 commit comments