Skip to content

Commit 1f6ee1a

Browse files
committed
feat: Adding support for index renaming.
1 parent 7fd5dbe commit 1f6ee1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meilisearch/index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def update(self, primary_key: Optional[str] = None, new_uid: Optional[str] = Non
126126
An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
127127
"""
128128
if primary_key is None and new_uid is None:
129-
raise ValueError("You must provide either 'primary_key' or 'new_uid' to update the index.")
129+
raise ValueError(
130+
"You must provide either 'primary_key' or 'new_uid' to update the index."
131+
)
130132

131133
payload = {}
132134
if primary_key is not None:

0 commit comments

Comments
 (0)