fix(backend): corrige la syntaxe du bloc except de la sonde de disponibilite

`except SQLAlchemyError, OSError:` est de la syntaxe Python 2. Le module
health.py ne s'importait pas, ce qui cassait make dev, make test,
make typecheck et alembic.
This commit is contained in:
Johan LEROY
2026-09-14 14:13:45 +02:00
parent 4de5fb0935
commit 91f4f007d3
+1 -1
View File
@@ -24,7 +24,7 @@ async def liveness(settings: SettingsDep) -> LivenessStatus:
async def readiness(session: SessionDep) -> ReadinessStatus:
try:
await session.execute(text("SELECT 1"))
except SQLAlchemyError, OSError:
except (SQLAlchemyError, OSError):
logger.exception("Base de donnees injoignable")
raise HTTPException(
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,