fix: jean-router syntax error (missing except block)
This commit is contained in:
+4
-4
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user