diff --git a/pkg/scraper/stashbox/stash_box.go b/pkg/scraper/stashbox/stash_box.go index f87e4a9fe..a560c25d4 100644 --- a/pkg/scraper/stashbox/stash_box.go +++ b/pkg/scraper/stashbox/stash_box.go @@ -3,7 +3,9 @@ package stashbox import ( "bytes" "context" + "database/sql" "encoding/json" + "errors" "fmt" "io" "mime/multipart" @@ -227,8 +229,9 @@ func (c Client) SubmitStashBoxFingerprints(ctx context.Context, sceneIDs []strin qb := c.repository.Scene for _, sceneID := range ids { + // TODO - Find should return an appropriate not found error scene, err := qb.Find(ctx, sceneID) - if err != nil { + if err != nil && !errors.Is(err, sql.ErrNoRows) { return err }