fix: re-vérifier db_path.exists() dans le handler et assertion return value (#78)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-06-12 13:50:57 +02:00
parent bba53d81e1
commit fa2709b38c
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ def _ensure_database() -> Path:
else:
logger.debug("Base de données déjà disponible et à jour.")
except Exception as e:
if db_exists:
if db_exists and db_path.exists():
logger.error(
f"Bootstrap données KO ({e}). "
f"Réutilisation du DuckDB existant : {db_path}"