Skip to content

Commit 2030e47

Browse files
committed
Generic error class
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent ec876d6 commit 2030e47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdk/python/feast/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def __init__(self, online_store_class_name: str):
8686

8787

8888
class FeastStoreConfigInvalidName(Exception):
89-
def __init__(self, online_store_config_class_name: str, store_type="Online"):
89+
def __init__(self, store_config_class_name: str, store_type: str):
9090
super().__init__(
91-
f"Online Store Config Class '{online_store_config_class_name}' "
91+
f"Config Class '{store_config_class_name}' "
9292
f"should end with the string `{store_type}Config`.'"
9393
)
9494

sdk/python/feast/repo_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def get_config_class_from_type(
189189
module_name: str, config_class_name: str, store_type: str
190190
):
191191
if not config_class_name.endswith(f"{store_type}Config"):
192-
raise errors.FeastStoreConfigInvalidName(config_class_name)
192+
raise errors.FeastStoreConfigInvalidName(config_class_name, store_type)
193193

194194
# Try importing the module that contains the custom provider
195195
try:

0 commit comments

Comments
 (0)