From 26022c27333d69304ec8ae7b612e8ca7ba08e99d Mon Sep 17 00:00:00 2001 From: rdelaage Date: Tue, 30 Jul 2024 19:12:06 +0200 Subject: [PATCH] Fix no rows in result set error in emoji list command (#3152) Co-authored-by: Romain de Laage --- cmd/gotosocial/action/admin/media/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gotosocial/action/admin/media/list.go b/cmd/gotosocial/action/admin/media/list.go index 9791a9f51..547954d4c 100644 --- a/cmd/gotosocial/action/admin/media/list.go +++ b/cmd/gotosocial/action/admin/media/list.go @@ -83,7 +83,7 @@ func (l *list) GetAllEmojisPaths(ctx context.Context, filter func(*gtsmodel.Emoj for { // Get the next page of emoji media up to max ID. attachments, err := l.dbService.GetEmojis(ctx, &l.page) - if err != nil { + if err != nil && !errors.Is(err, db.ErrNoEntries) { return nil, fmt.Errorf("failed to retrieve media metadata from database: %w", err) }