cache even unexisting bot settings
This commit is contained in:
parent
9f66d1fee6
commit
00b84fba0e
1 changed files with 5 additions and 2 deletions
|
|
@ -58,9 +58,12 @@ func (b *Bot) getBotSettings() botSettings {
|
|||
if err != nil {
|
||||
if strings.Contains(err.Error(), "M_NOT_FOUND") {
|
||||
err = nil
|
||||
} else {
|
||||
b.log.Error("cannot get bot settings: %v", utils.UnwrapError(err))
|
||||
}
|
||||
b.log.Error("cannot get bot settings: %v", utils.UnwrapError(err))
|
||||
} else {
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
b.botcfg.Set(acBotSettingsKey, config)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue