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")
|
log.info("Persona iframe found")
|
||||||
except Exception:
|
except Exception:
|
||||||
log.warning("Persona widget iframe not found")
|
log.warning("Persona widget iframe not found, will retry")
|
||||||
return False
|
return True
|
||||||
|
|
||||||
if frames_b64 is None and donor_video:
|
if frames_b64 is None and donor_video:
|
||||||
w, h = _get_video_size(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:
|
except Exception:
|
||||||
pass
|
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")
|
save_result(acc, "pending", "no result in 120s loop")
|
||||||
return False
|
return True
|
||||||
|
|
||||||
|
|
||||||
def ensure_files() -> None:
|
def ensure_files() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user