fix: harden postprocessing and recovery boundaries

Preserve local CPA success while surfacing hotload-copy warnings, retry transient DuckMail/YYDS message details, serialize pending recovery on target files, isolate optional NSFW failures, and restore main-module constant forwarding.
This commit is contained in:
Aaron Liang
2026-07-15 12:02:57 +08:00
committed by GitHub
parent 6fd84282c9
commit 9b047db6f6
7 changed files with 606 additions and 16 deletions
+2
View File
@@ -176,6 +176,8 @@ def export_cpa_xai_for_account(email, password, page=None, cookies=None, sso=Non
log("[cpa] hotload copy -> %s" % target)
except Exception as exc:
result["cpa_copy_error"] = str(exc)
result["warning"] = True
result["partial"] = True
log("[cpa] hotload copy failed: %s" % exc)
if not result.get("ok"):
fail_path = settings.auth_dir / "cpa_auth_failed.txt"