Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Update canals/pipeline/pipeline.py
Browse files Browse the repository at this point in the history
Co-authored-by: ZanSara <sara.zanzottera@deepset.ai>
  • Loading branch information
masci and ZanSara committed Nov 16, 2023
1 parent f4b3aad commit b4fc5c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions canals/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def from_dict(cls: Type[T], data: Dict[str, Any], **kwargs) -> T:
try:
# Import the module first...
module, _ = component_data["type"].rsplit(".", 1)
logger.debug("Trying to import %s", module)
importlib.import_module(module)
# ...then try again
if component_data["type"] not in component.registry:
Expand Down

0 comments on commit b4fc5c6

Please sign in to comment.