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