From bbe7bd48c5ca8f440e5d1c76ce76a380097731c7 Mon Sep 17 00:00:00 2001 From: alpha nerd Date: Wed, 29 Apr 2026 17:03:32 +0200 Subject: [PATCH] feat: populate error cache also from endpoint_details if necessary --- router.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router.py b/router.py index 995eb78..54edbf3 100644 --- a/router.py +++ b/router.py @@ -1078,6 +1078,9 @@ class fetch: # If anything goes wrong we cannot reply details message = _format_connection_issue(request_url, e) print(f"[fetch.endpoint_details] {message}") + if not skip_error_cache: + async with _available_error_cache_lock: + _available_error_cache[endpoint] = time.time() return [] def ep2base(ep):