Skip to content

Commit

Permalink
fix typing again
Browse files Browse the repository at this point in the history
  • Loading branch information
docNord committed Apr 26, 2024
1 parent 2acc50c commit 58cf6d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/smhi/metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ def __init__(
super().__init__()

if period == "not-set":
period = sorted(periods_in_station, key=lambda x: x.key).data[0]
available_periods = sorted(periods_in_station.data)
period = available_periods[0]

if data_type != "json":
raise TypeError("Only json supported.")
Expand Down

0 comments on commit 58cf6d1

Please sign in to comment.