fix: jean-router syntax error (missing except block)

This commit is contained in:
Folzo
2026-07-20 10:14:23 +02:00
parent fcad41521e
commit b441f3495a
+4 -4
View File
@@ -49,6 +49,10 @@ def get_presets(force_refresh=False):
presets_cache["data"] = r.json() presets_cache["data"] = r.json()
presets_cache["timestamp"] = now presets_cache["timestamp"] = now
return presets_cache["data"] return presets_cache["data"]
except Exception as e:
log.warning(f"[Presets] Erreur récupération: {e}")
return presets_cache["data"]
def get_ollama_models(force_refresh=False): def get_ollama_models(force_refresh=False):
@@ -72,10 +76,6 @@ def get_ollama_models(force_refresh=False):
log.warning(f"[Ollama] Erreur récupération: {e}") log.warning(f"[Ollama] Erreur récupération: {e}")
return ollama_cache["data"] 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(): def get_active_preset():