hh
This commit is contained in:
@@ -1157,7 +1157,7 @@ def is_available(config: dict[str, Any], use_cache: bool = True) -> tuple[bool,
|
||||
|
||||
url = (get_hydrus_url(config, "home") or "").strip()
|
||||
if not url:
|
||||
reason = "Hydrus URL not configured (check config.json HydrusNetwork.home.url)"
|
||||
reason = "Hydrus URL not configured (check config.conf store.hydrusnetwork.home.URL)"
|
||||
_HYDRUS_AVAILABLE = False
|
||||
_HYDRUS_UNAVAILABLE_REASON = reason
|
||||
return False, reason
|
||||
@@ -1245,7 +1245,7 @@ def get_client(config: dict[str, Any]) -> HydrusNetwork:
|
||||
# Use new config helpers
|
||||
hydrus_url = (get_hydrus_url(config, "home") or "").strip()
|
||||
if not hydrus_url:
|
||||
raise RuntimeError("Hydrus URL is not configured (check config.json HydrusNetwork.home.url)")
|
||||
raise RuntimeError("Hydrus URL is not configured (check config.conf store.hydrusnetwork.home.URL)")
|
||||
|
||||
access_key = get_hydrus_access_key(config, "home") or ""
|
||||
timeout_raw = config.get("HydrusNetwork_Request_Timeout")
|
||||
|
||||
Reference in New Issue
Block a user