Skip to content

Commit 7b70f21

Browse files
committed
fix casing on ValueError in analyzer type test
1 parent 0793b9e commit 7b70f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(
118118
"Atlas Search field mappings."
119119
)
120120
if analyzer is not None and not isinstance(analyzer, str):
121-
raise ValueError(f"Analyzer must be a string. got type: {type(analyzer)}")
121+
raise ValueError(f"analyzer must be a string. got type: {type(analyzer)}")
122122
if search_analyzer is not None and not isinstance(search_analyzer, str):
123123
raise ValueError(f"search_analyzer must be a string. got type: {type(search_analyzer)}")
124124
self.field_mappings = field_mappings

0 commit comments

Comments
 (0)