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():