diff --git a/lib/crewai/src/crewai/types/callback.py b/lib/crewai/src/crewai/types/callback.py index 74cf8a3f6..ad201a0d4 100644 --- a/lib/crewai/src/crewai/types/callback.py +++ b/lib/crewai/src/crewai/types/callback.py @@ -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: