Skip to content

Commit 03fb33e

Browse files
committed
PYTHON-5782 Fix document-too-large error message dropping spurious repr quotes
1 parent dc1094d commit 03fb33e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pymongo/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def _raise_document_too_large(operation: str, doc_size: int, max_size: int) -> N
652652
else:
653653
# There's nothing intelligent we can say
654654
# about size for update and delete
655-
raise DocumentTooLarge(f"{operation!r} command document too large")
655+
raise DocumentTooLarge(f"{operation} command document too large")
656656

657657

658658
# From the Client Side Encryption spec:

0 commit comments

Comments
 (0)