From 7bb38ae6dc32225b15f0a27745c3265951866ff4 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:45:11 +1100 Subject: [PATCH] Don't error out if a single url not fetched (#4591) --- pkg/pkg/manager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/pkg/manager.go b/pkg/pkg/manager.go index 31e80bf9879..18fa4e0d1a7 100644 --- a/pkg/pkg/manager.go +++ b/pkg/pkg/manager.go @@ -11,6 +11,7 @@ import ( "net/url" "path/filepath" + "github.com/stashapp/stash/pkg/logger" "github.com/stashapp/stash/pkg/models" ) @@ -98,7 +99,8 @@ func (m *Manager) ListInstalledRemotes(ctx context.Context, installed LocalPacka for _, remoteURL := range remoteURLs { remoteList, err := m.ListRemote(ctx, remoteURL) if err != nil { - return nil, err + logger.Warnf("error listing remote package %s: %v", remoteURL, err) + continue } allRemoteList.merge(remoteList)