remove redundant goto
This commit is contained in:
@@ -241,7 +241,6 @@ def export_invoice_pdf(
|
||||
if not invoice.get("reference_id"):
|
||||
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']}']"
|
||||
anchor = page.locator(selector).first
|
||||
if anchor.count() > 0:
|
||||
|
||||
Reference in New Issue
Block a user