From 6a570f2f12e12e92c9e87072c0908df3dadb5295 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 8 Oct 2026 09:39:49 +0100 Subject: [PATCH] Fail backup when a fresh export cannot be requested --- backup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backup.py b/backup.py index 7698cb6..9820cde 100755 --- a/backup.py +++ b/backup.py @@ -73,7 +73,9 @@ def run_backup(page: Page) -> None: export_file_link.wait_for(state="visible", timeout=15 * 60 * 1000) print("export ready") else: - print("Export Library button not found, using latest ready export link") + raise RuntimeError( + "Export Library button missing or not visible; cannot request a fresh export" + ) print("download export") export_link = page.get_by_role("link", name="Your export from").first