Skip to content

Commit

Permalink
Clarify load models error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Sep 24, 2024
1 parent fc64b56 commit 2fa962a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/load_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {
for _, model := range models {
f := strings.Split(model, "/")
path := filepath.Join(modelsPath, f[len(f)-1])
if _, err := os.Stat(path); err != nil {
if _, e := os.Stat(path); e != nil {
err := downloadModel(path, model)
if err != nil {
panic(err)
Expand Down

0 comments on commit 2fa962a

Please sign in to comment.