fix error on day without any bin collection
This commit is contained in:
parent
b68b341862
commit
df546831f3
1 changed files with 1 additions and 1 deletions
2
awl.go
2
awl.go
|
|
@ -81,7 +81,7 @@ func AwlTomorrow(street, home int) ([]string, error) {
|
|||
|
||||
day, ok := month[currentDay]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("could not access day (%s):\n%s", currentDay, string(content))
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return day, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue