fix: retry stale keep-alive requests (#5893)

This commit is contained in:
DDSRem
2026-06-04 06:55:03 +08:00
committed by GitHub
parent 0d2c324e28
commit df75f42753
3 changed files with 137 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ def ensure_sites_stub() -> None:
return
try:
import app.helper.sites # noqa: F401 本地已拉取时用真实模块
except ModuleNotFoundError:
except (ModuleNotFoundError, ImportError):
from types import ModuleType
stub = ModuleType("app.helper.sites")
stub.SitesHelper = object