Skip to content

Commit ddf0cb1

Browse files
authored
fix: Allow --reset or --init on reindex_studio as no-ops
1 parent 53d3d5d commit ddf0cb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openedx/core/djangoapps/content/search/management/commands/reindex_studio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ def handle(self, *args, **options):
7373
raise CommandError("Meilisearch is not enabled. Please set MEILISEARCH_ENABLED to True in your settings.")
7474

7575
if options["reset"]:
76-
raise CommandError(
76+
log.warning(
7777
"The --reset flag has been removed. "
7878
"Index reset is now handled automatically by post_migrate reconciliation. "
7979
"Run: ./manage.py cms migrate"
8080
)
8181

8282
if options["init"]:
83-
raise CommandError(
83+
log.warning(
8484
"The --init flag has been removed. "
8585
"Index initialization is now handled automatically by post_migrate reconciliation. "
8686
"Run: ./manage.py cms migrate"

0 commit comments

Comments
 (0)