fix: avoid worker fetch noise when server is offline

This commit is contained in:
Luca Sacchi Ricciardi
2026-04-25 16:30:46 +02:00
parent 1c76515d8c
commit 6739b84b9a
3 changed files with 23 additions and 6 deletions
+2
View File
@@ -126,6 +126,8 @@ async def get_models(host: Optional[str] = Query(default=None)):
status_code=502,
detail="Impossible connettersi a Ollama"
)
except HTTPException:
raise
except Exception as e:
logger.error(f"Error fetching models: {e}")
raise HTTPException(