chore: avoid panic
This commit is contained in:
parent
83e6773862
commit
329bbc5d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue