Skip to content

Commit

Permalink
Fix no rows in result set error in emoji list command (#3152)
Browse files Browse the repository at this point in the history
Co-authored-by: Romain de Laage <[email protected]>
  • Loading branch information
rdelaage and Romain de Laage authored Jul 30, 2024
1 parent 0b4a951 commit 26022c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gotosocial/action/admin/media/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 26022c2

Please sign in to comment.