Skip to content

Commit bf4e7cb

Browse files
committed
Fix mypy issues
1 parent 61500d2 commit bf4e7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meilisearch/index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,7 @@ def update_embedders(self, body: Union[MutableMapping[str, Any], None]) -> TaskI
19611961
An error containing details about why Meilisearch can't process your request.
19621962
Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
19631963
"""
1964-
if body.get("embedders"):
1964+
if body is not None and body.get("embedders"):
19651965
for _, v in body["embedders"].items():
19661966
if "documentTemplateMaxBytes" in v and v["documentTemplateMaxBytes"] is None:
19671967
del v["documentTemplateMaxBytes"]

0 commit comments

Comments
 (0)