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 <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman 2025-08-10 11:17:17 +03:00 committed by GitHub
parent df0c0b3f7f
commit 089fe34ec9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: