From c9c0d8ee9429709aa5e5088bed1f5ea5afb14391 Mon Sep 17 00:00:00 2001 From: Robert Barnett Date: Mon, 5 Oct 2026 18:59:12 -0400 Subject: [PATCH] Log an unreadable backup snapshot instead of skipping it silently Listing backups skipped any snapshot directory it could not read with no trace, so a snapshot that was missing from the list could not be explained. It now logs a warning naming the snapshot and the reason, and still lists the rest. --- app/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/backup.py b/app/backup.py index c75c592..cd6f45a 100644 --- a/app/backup.py +++ b/app/backup.py @@ -160,8 +160,8 @@ def list_backups_sync(db_path: str) -> list[dict]: "size_bytes": size, "files": files, }) - except Exception: - pass + except Exception as e: + log.warning(f"Skipping unreadable backup {snap.name}: {e}") return result