Skip to content

Commit

Permalink
set config_model explicitly to None when there is no model available
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed May 22, 2024
1 parent dace223 commit 4f1204e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snappy_pipeline/workflows/abstract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ def __init__(
f"No pydantic model named {model_name} found in {model_path} (for step {self.name}), "
f"skipping validation",
)
self.config_model = None
except pydantic.ValidationError as ve:
logging.error(f"{self.name} failed validation")
raise ve
Expand Down

0 comments on commit 4f1204e

Please sign in to comment.