Auto-retry on verification timeout / iframe not found
tests / test (push) Successful in 5s
tests / release (push) Successful in 6s

This commit is contained in:
TheRaiwy
2026-07-10 19:43:51 +03:00
parent b29b438df3
commit f161dbbbd5
+4 -4
View File
@@ -432,8 +432,8 @@ def process_account(driver, acc: dict, donor_video: Path | None,
)
log.info("Persona iframe found")
except Exception:
log.warning("Persona widget iframe not found")
return False
log.warning("Persona widget iframe not found, will retry")
return True
if frames_b64 is None and donor_video:
w, h = _get_video_size(donor_video)
@@ -677,9 +677,9 @@ def process_account(driver, acc: dict, donor_video: Path | None,
except Exception:
pass
log.info("No decline message — pending (wait for days)")
log.info("Verification timed out — restarting")
save_result(acc, "pending", "no result in 120s loop")
return False
return True
def ensure_files() -> None: