Skip to content

Commit

Permalink
fix manager.py to throw specific error
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmvd committed Feb 3, 2025
1 parent 74f4461 commit eeacfd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timesketch/lib/llms/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_provider(cls, feature_name: str = None, **kwargs) -> LLMProvider:
config_mapping = llm_configs.get("default")

if not config_mapping or len(config_mapping) != 1:
raise Exception(
raise ValueError(
"Configuration for the feature must specify exactly one provider."
)

Expand Down

0 comments on commit eeacfd6

Please sign in to comment.