diff --git a/tools/website_policy.py b/tools/website_policy.py index c621dcbf3c0..e193110fad9 100644 --- a/tools/website_policy.py +++ b/tools/website_policy.py @@ -137,7 +137,8 @@ def load_website_blocklist(config_path: Optional[Path] = None) -> Dict[str, Any] """ global _cached_policy, _cached_policy_path, _cached_policy_time - resolved_path = str(config_path) if config_path else "__default__" + default_path = str(_get_default_config_path()) + resolved_path = str(config_path) if config_path else default_path now = time.monotonic() # Return cached policy if still fresh and same path @@ -193,7 +194,7 @@ def load_website_blocklist(config_path: Optional[Path] = None) -> Dict[str, Any] if config_path == _get_default_config_path(): with _cache_lock: _cached_policy = result - _cached_policy_path = "__default__" + _cached_policy_path = resolved_path _cached_policy_time = now return result