From c4f203ac7cf5fb8ee7ed200ada866cdafd81e8e2 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Fri, 1 Dec 2023 20:50:47 +0530 Subject: [PATCH] Continue export on unpacking err --- pkg/remote_to_disk_file.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/remote_to_disk_file.go b/pkg/remote_to_disk_file.go index fc495e66f..a192d48a3 100644 --- a/pkg/remote_to_disk_file.go +++ b/pkg/remote_to_disk_file.go @@ -1,6 +1,7 @@ package pkg import ( + "archive/zip" "context" "encoding/json" "errors" @@ -70,6 +71,9 @@ func (c *ClICtrl) syncFiles(ctx context.Context, account model.Account) error { if err != nil { if errors.Is(err, model.ErrDecryption) { continue + } else if existingEntry.IsLivePhoto() && errors.Is(err, zip.ErrFormat) { + log.Printf(fmt.Sprintf("err processing live photo %s (%d), %s", existingEntry.GetTitle(), existingEntry.ID, err.Error())) + continue } else { return err }