fix: keep abra working if recipe catalogue is offline

This commit is contained in:
Moritz 2022-12-06 17:49:28 +01:00
parent 4e78b060e0
commit d6a8abad00

View File

@ -712,14 +712,17 @@ func ReadRecipeCatalogue() (RecipeCatalogue, error) {
recipeFSIsLatest, err := recipeCatalogueFSIsLatest()
if err != nil {
return nil, err
logrus.Error(err)
logrus.Error("failed to access last recipe catalogue")
}
if !recipeFSIsLatest {
if err := readRecipeCatalogueWeb(&recipes); err != nil {
return nil, err
logrus.Error(err)
logrus.Error("failed to access web recipe catalogue")
} else {
return recipes, nil
}
return recipes, nil
}
if err := readRecipeCatalogueFS(&recipes); err != nil {