Skip to content

Commit 9fcdfc4

Browse files
committed
fixup
1 parent 9dbc572 commit 9fcdfc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/search/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def switch_es_index(app_label, model_name, index_name, new_index_name):
7171
def index_objects_to_es(app_label, model_name, document_class, index_name,
7272
chunk=None, objects_id=None):
7373

74-
assert not chunk and objects_id, "You can not pass both chunk and objects_id"
74+
assert not (chunk and objects_id), "You can not pass both chunk and objects_id"
7575

7676
model = apps.get_model(app_label, model_name)
7777
document = _get_document(model=model, document_class=document_class)

0 commit comments

Comments
 (0)