remove redundant goto

This commit is contained in:
Jan Bader
2026-04-08 09:47:08 +02:00
parent f703f39bcb
commit 881f6f5bd7

View File

@@ -241,7 +241,6 @@ def export_invoice_pdf(
if not invoice.get("reference_id"): if not invoice.get("reference_id"):
raise RuntimeError("Invoice reference id is required to open the invoice popup") raise RuntimeError("Invoice reference id is required to open the invoice popup")
page = _goto_with_retry(context, page, billing_url)
selector = f"a[data-reference-object-id='{invoice['reference_id']}']" selector = f"a[data-reference-object-id='{invoice['reference_id']}']"
anchor = page.locator(selector).first anchor = page.locator(selector).first
if anchor.count() > 0: if anchor.count() > 0: