fix: fix gemini panic

This commit is contained in:
CaIon
2024-01-07 21:27:28 +08:00
parent b91a269ddb
commit bba6174745
3 changed files with 35 additions and 1 deletions

View File

@@ -18,6 +18,12 @@ type QuotaData struct {
}
func UpdateQuotaData() {
// recover
defer func() {
if r := recover(); r != nil {
common.SysLog(fmt.Sprintf("UpdateQuotaData panic: %s", r))
}
}()
for {
if common.DataExportEnabled {
common.SysLog("正在更新数据看板数据...")