diff --git a/web/backend/api/model_status.go b/web/backend/api/model_status.go index 03666ae9f..0ecdf9412 100644 --- a/web/backend/api/model_status.go +++ b/web/backend/api/model_status.go @@ -208,7 +208,10 @@ func (s *modelProbeCacheState) probe(cacheKey string, probeFunc func() bool) boo return result, nil }) - result, _ := v.(bool) + result, ok := v.(bool) + if !ok { + return false + } return result }