Skip to content

Commit

Permalink
include import module error to pinpoint culprit module import (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
plutopulp authored Mar 19, 2024
1 parent ae200a1 commit 74ff0f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pipeline/container/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ def _load(self, pipeline_path: str):
self.pipeline: Graph = getattr(
self.pipeline_module, self.pipeline_name_str
)
except ModuleNotFoundError:
raise ValueError(f"Could not find module {self.pipeline_module_str}")
except ModuleNotFoundError as e:
raise ValueError(
f"Could not load module {self.pipeline_module_str}, {e}"
)
except AttributeError:
raise ValueError(
(
Expand Down

0 comments on commit 74ff0f0

Please sign in to comment.