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