Skip to content

Commit

Permalink
fix(pipe): add error handling for missing method in config
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jun 21, 2023
1 parent 90234f1 commit 5fe151f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hyfi/pipe/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

def data_class_methods(data: Any, config_kwargs: Dict):
config = PipeConfig(**config_kwargs)
if not config._method_:
raise ValueError("No method specified")
if config.verbose:
logger.info("Running dataframe function: %s", config_kwargs)
if isinstance(data, dict):
Expand Down

0 comments on commit 5fe151f

Please sign in to comment.