From f161dbbbd5c339670a7de943bda0b73b03aca27c Mon Sep 17 00:00:00 2001 From: TheRaiwy Date: Fri, 10 Jul 2026 19:43:51 +0300 Subject: [PATCH] Auto-retry on verification timeout / iframe not found --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index ec6d6a5..efd6096 100644 --- a/main.py +++ b/main.py @@ -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: