From 089fe34ec93b2f9a40e50b048021e61e0eb6b2dd Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Sun, 10 Aug 2025 11:17:17 +0300 Subject: [PATCH] fix: raise error on version mapping failure (#1228) ## Description Fixed `ValueError` that was not being properly raised when `version_code` could not be mapped to proper Kuzu version. ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. Signed-off-by: Emmanuel Ferdman --- cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py b/cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py index 3f930d91f..f36b2ec66 100644 --- a/cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py +++ b/cognee/infrastructure/databases/graph/kuzu/kuzu_migrate.py @@ -74,7 +74,7 @@ def read_kuzu_storage_version(kuzu_db_path: str) -> int: if kuzu_version_mapping.get(version_code): return kuzu_version_mapping[version_code] else: - ValueError("Could not map version_code to proper Kuzu version.") + raise ValueError("Could not map version_code to proper Kuzu version.") def ensure_env(version: str, export_dir) -> str: