Skip to content

Commit 73ef8af

Browse files
committed
fix(core): update version and simplify validation error message
1 parent a1ea1f2 commit 73ef8af

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

reme/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"ReMeFs",
1919
]
2020

21-
__version__ = "0.3.0.0a1"
21+
__version__ = "0.3.0.0a2"
2222

2323

2424
"""
2525
conda create -n fl_test2 python=3.10
2626
conda activate fl_test2
2727
conda env remove -n fl_test2
28-
"""
28+
"""

reme/core/memory_store/base_memory_store.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ def __init__(
2323
# Validate store_name to prevent SQL injection
2424
# Only allow alphanumeric characters and underscores
2525
if not re.match(r"^[a-zA-Z0-9_]+$", store_name):
26-
raise ValueError(
27-
f"Invalid store_name: '{store_name}'. "
28-
"Only alphanumeric characters and underscores are allowed."
29-
)
26+
raise ValueError(f"Invalid '{store_name}'. Only alphanumeric characters and underscores are allowed.")
3027
self.store_name: str = store_name
3128
self.embedding_model: BaseEmbeddingModel = embedding_model
3229
self.fts_enabled: bool = fts_enabled

0 commit comments

Comments
 (0)