mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Don't error out if a single url not fetched (#4591)
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
"github.com/stashapp/stash/pkg/logger"
|
||||||
"github.com/stashapp/stash/pkg/models"
|
"github.com/stashapp/stash/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -98,7 +99,8 @@ func (m *Manager) ListInstalledRemotes(ctx context.Context, installed LocalPacka
|
|||||||
for _, remoteURL := range remoteURLs {
|
for _, remoteURL := range remoteURLs {
|
||||||
remoteList, err := m.ListRemote(ctx, remoteURL)
|
remoteList, err := m.ListRemote(ctx, remoteURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
logger.Warnf("error listing remote package %s: %v", remoteURL, err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
allRemoteList.merge(remoteList)
|
allRemoteList.merge(remoteList)
|
||||||
|
|||||||
Reference in New Issue
Block a user