fix: keep abra working if recipe catalogue is offline
This commit is contained in:
parent
4e78b060e0
commit
d6a8abad00
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user