mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-03 06:08:15 +00:00
fix: catch ImportError in dotted path resolution for broken modules
This commit is contained in:
@@ -101,7 +101,7 @@ def _resolve_dotted_path(path: str) -> Callable[..., Any]:
|
||||
module_path = ".".join(parts[:i])
|
||||
try:
|
||||
obj: Any = importlib.import_module(module_path)
|
||||
except (ModuleNotFoundError, ValueError):
|
||||
except (ImportError, ValueError):
|
||||
continue
|
||||
# Walk the remaining attribute chain.
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user