mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-12 19:21:05 +08:00
fix: retry stale keep-alive requests (#5893)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user