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:
parent
df0c0b3f7f
commit
089fe34ec9
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ def read_kuzu_storage_version(kuzu_db_path: str) -> int:
|
||||||
if kuzu_version_mapping.get(version_code):
|
if kuzu_version_mapping.get(version_code):
|
||||||
return kuzu_version_mapping[version_code]
|
return kuzu_version_mapping[version_code]
|
||||||
else:
|
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:
|
def ensure_env(version: str, export_dir) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue