From 07914616af162622ecc3e1449297d751aacd9b84 Mon Sep 17 00:00:00 2001 From: Ayyan Date: Thu, 11 Dec 2025 14:02:24 -0800 Subject: [PATCH] fix(messages_list): prevent panic on failed attachment download (#660) --- cmd/messages_list.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/messages_list.go b/cmd/messages_list.go index 307c142..66f62ae 100644 --- a/cmd/messages_list.go +++ b/cmd/messages_list.go @@ -497,6 +497,7 @@ func (ml *messagesList) openAttachment(attachment discord.Attachment) { resp, err := http.Get(attachment.URL) if err != nil { slog.Error("failed to fetch the attachment", "err", err, "url", attachment.URL) + return } defer resp.Body.Close()