fix error when add

This commit is contained in:
2025-08-25 22:13:23 +02:00
parent 9a14571c31
commit 044d49a9dc
2 changed files with 7 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import (
"cloudsave/pkg/remote/client"
"cloudsave/pkg/repository"
"cloudsave/pkg/tools/archive"
"errors"
"fmt"
"io"
"os"
@@ -134,6 +135,9 @@ func (s *Service) MakeBackup(gameID string) error {
src, err := s.repo.ReadBlob(id)
if err != nil {
if errors.Is(err, repository.ErrNotFound) {
return nil
}
return err
}
if v, ok := src.(io.Closer); ok {