Skip to content

Commit

Permalink
extend exception for invalid offset_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jan 31, 2024
1 parent 4a481ca commit e5dfab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gluonts/time_feature/lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _make_lags_for_month(multiple, num_cycles=3):
+ _make_lags_for_hour(offset.n / (60 * 60))
)
else:
raise Exception("invalid frequency")
raise ValueError(f"invalid frequency | `freq_str={freq_str}` -> `offset_name={offset_name}`")

# flatten lags list and filter
lags = [
Expand Down

0 comments on commit e5dfab0

Please sign in to comment.