diff --git a/lib/crewai/src/crewai/types/callback.py b/lib/crewai/src/crewai/types/callback.py index 8c35ddca0..2a8be235e 100644 --- a/lib/crewai/src/crewai/types/callback.py +++ b/lib/crewai/src/crewai/types/callback.py @@ -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: