From b441f3495a10d6078d50ed5bf829c0762f692e6b Mon Sep 17 00:00:00 2001 From: Folzo Date: Mon, 20 Jul 2026 10:14:23 +0200 Subject: [PATCH] fix: jean-router syntax error (missing except block) --- jean-router/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jean-router/app.py b/jean-router/app.py index 8c5c201..00acc99 100644 --- a/jean-router/app.py +++ b/jean-router/app.py @@ -48,6 +48,10 @@ def get_presets(force_refresh=False): if r.ok: presets_cache["data"] = r.json() presets_cache["timestamp"] = now + return presets_cache["data"] + except Exception as e: + log.warning(f"[Presets] Erreur récupération: {e}") + return presets_cache["data"] @@ -72,10 +76,6 @@ def get_ollama_models(force_refresh=False): log.warning(f"[Ollama] Erreur récupération: {e}") return ollama_cache["data"] - except Exception as e: - log.warning(f"[Presets] Erreur récupération: {e}") - - return presets_cache["data"] def get_active_preset():