Skip to content

Commit ecee3be

Browse files
yeagoacdha
andauthored
Update haystack/management/commands/update_index.py
Co-authored-by: Chris Adams <[email protected]>
1 parent 329eb6e commit ecee3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/management/commands/update_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def handle(self, **options):
256256
LOG.setLevel(logging.INFO)
257257

258258
if (minutes and age) or (minutes and start_date) or (age and start_date):
259-
raise NotImplementedError("Minutes / age / start date options are mutually exclusive")
259+
parser.error("Minutes / age / start date options are mutually exclusive")
260260

261261
if minutes is not None:
262262
self.start_date = now() - timedelta(minutes=int(minutes))

0 commit comments

Comments
 (0)