remove redundant goto
This commit is contained in:
1 parent
f703f39bcb
commit
881f6f5bd7
1 file changed
-1
@@ -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