From 1c886c0f6c29a9e9d1d3595b2de840eb0126a147 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 23 Nov 2026 17:00:55 -0700 Subject: [PATCH] recommend: an unreadable allowance never hides a worker. done / next: report --- sisi/workers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sisi/workers.py b/sisi/workers.py index 3f2cdd7..0d9c0ec 100644 --- a/sisi/workers.py +++ b/sisi/workers.py @@ -1160,7 +1160,10 @@ def recommend(kind, difficulty, cwd=None, own_model=None): other worker is usable.""" records = read_records() candidates, _tools = _cached_candidates(records) - _D.apply_allowances(candidates, cached_only=True) # a hook never asks a provider; the last reading stands + try: + _D.apply_allowances(candidates, cached_only=True) # a hook never asks a provider; the last reading stands + except Exception as e: # an allowance that cannot be read changes nothing about who is recommended + store.log_error("recommend-allowance", e) candidates, _cold, _x = routable_candidates(candidates, records) prefs = effective_prefs(kind, difficulty, cwd or os.getcwd()) candidates, _limited = apply_limits(candidates, prefs)