Skip to content

Commit

Permalink
Update aocd/models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wimglenn authored Nov 26, 2023
1 parent 14d4adf commit bf9e19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aocd/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_stats(
all_years = range(2015, aoc_now.year + int(aoc_now.month == 12))
if isinstance(years, int):
if years not in all_years:
raise ValueError(f"year must be within [{all_years.start}, {all_years.stop}). got {years}.")
raise ValueError(f"Valid years are {all_years.start} through {all_years.stop - 1}. Got {years}.")
years = (years,)
if years is None:
years = all_years
Expand Down

0 comments on commit bf9e19a

Please sign in to comment.