From e28e9795b07780e0fb6dd42bb3ab9e27d18a813e Mon Sep 17 00:00:00 2001 From: FrogAi <91348155+FrogAi@users.noreply.github.com> Date: Sat, 8 Aug 2026 23:56:11 -0700 Subject: [PATCH] Ignore invalid download paths instead of panicking --- settings/download.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settings/download.go b/settings/download.go index 010c34c..466b553 100644 --- a/settings/download.go +++ b/settings/download.go @@ -281,7 +281,8 @@ func countFilesForBounds(bounds Bounds) int { func getDataForPath(path string) LocationData { parts := strings.Split(path, ".") if len(parts) < 2 { - panic("invalid download path") + slog.Warn("ignoring invalid download path", "path", path) + return LocationData{} } menu := GetDownloadMenu() box := menu[parts[0]][parts[1]]