mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-04 00:32:36 +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])
|
module_path = ".".join(parts[:i])
|
||||||
try:
|
try:
|
||||||
obj: Any = importlib.import_module(module_path)
|
obj: Any = importlib.import_module(module_path)
|
||||||
except (ImportError, ValueError):
|
except (ImportError, TypeError, ValueError):
|
||||||
continue
|
continue
|
||||||
# Walk the remaining attribute chain.
|
# Walk the remaining attribute chain.
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user