Auto-retry on verification timeout / iframe not found
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user