chore: avoid panic

This commit is contained in:
andig 2022-12-29 11:34:22 +01:00
parent 83e6773862
commit 329bbc5d5b

View file

@ -103,7 +103,7 @@ func (t *Fixed) Rates() (api.Rates, error) {
}
if zone == nil {
panic("could not find zone")
return nil, fmt.Errorf("could not find zone for %02d:%02d", m.Hour, m.Min)
}
// end rate at end of day or next marker