Fail backup when a fresh export cannot be requested
This commit is contained in:
parent
56dff875e7
commit
6a570f2f12
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ def run_backup(page: Page) -> None:
|
||||||
export_file_link.wait_for(state="visible", timeout=15 * 60 * 1000)
|
export_file_link.wait_for(state="visible", timeout=15 * 60 * 1000)
|
||||||
print("export ready")
|
print("export ready")
|
||||||
else:
|
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")
|
print("download export")
|
||||||
export_link = page.get_by_role("link", name="Your export from").first
|
export_link = page.get_by_role("link", name="Your export from").first
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue