Skip to content

Commit

Permalink
Extend exception for invalid offset_name (#3115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Feb 1, 2024
1 parent 4a481ca commit e7f9d50
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 e7f9d50

Please sign in to comment.